Commit a21cbebc authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add auto removal flag to containers

parent a4e31883
Loading
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
#  Copyright 2021-2022  Dominik Sekotill <dom.sekotill@kodo.org.uk>
#  Copyright 2021-2023  Dominik Sekotill <dom.sekotill@kodo.org.uk>
#
#  This Source Code Form is subject to the terms of the Mozilla Public
#  License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -350,7 +350,10 @@ class Container(Item):
			opts.append(b"--network=none")

		self.cid = ShaID(
			docker_output(b"container", b"create", *opts, self.image.iid, *self.cmd),
			docker_output(
				b"container", b"create", "--rm",
				*opts, self.image.iid, *self.cmd,
			),
		)
		assert self.cid