prevent nil access on containers not present any longer in delete...
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user