prevent nil access on containers not present any longer in delete...

This commit is contained in:
Ralf Teusner
2015-10-19 15:52:48 +02:00
parent e88520f43b
commit 9e748e5dc9

View File

@ -126,7 +126,9 @@ class DockerClient
container.stop.kill container.stop.kill
container.port_bindings.values.each { |port| PortPool.release(port) } container.port_bindings.values.each { |port| PortPool.release(port) }
clean_container_workspace(container) clean_container_workspace(container)
container.delete(force: true, v: true) if(container)
container.delete(force: true, v: true)
end
end end
def execute_arbitrary_command(command, &block) def execute_arbitrary_command(command, &block)