Commit 9af12dcc authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Merge branch '29-auto-rm-containers' into 'release/0.3.x'

Enable auto removal of containers on exit

See merge request !14
parents 36c9f812 6c9bb49f
Loading
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -341,7 +341,10 @@ class Container(Item):
		else:
			opts.append(b"--network=none")

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

		# Disconnect the "none" network specified as the starting network