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,8 +126,10 @@ class DockerClient
container.stop.kill
container.port_bindings.values.each { |port| PortPool.release(port) }
clean_container_workspace(container)
if(container)
container.delete(force: true, v: true)
end
end
def execute_arbitrary_command(command, &block)
execute_command(command, nil, block)