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

Raise exception if attempting to run cmd on stopped container

parent 3e540265
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -452,6 +452,7 @@ class Container(Item):
		"""
		Run "cmd" to completion inside the container and return the result
		"""
		self.is_running(raise_on_exit=True)
		return run(
			self.get_exec_args(cmd),
			stdin=stdin, stdout=stdout, stderr=stderr,