(Try to) stop old container before removing it.
This commit is contained in:
parent
5a562e2e90
commit
f7b9535089
1
dup.rb
1
dup.rb
@ -311,6 +311,7 @@ class Container
|
|||||||
|
|
||||||
def stop_and_remove
|
def stop_and_remove
|
||||||
verbose "Stopping and removing old container..."
|
verbose "Stopping and removing old container..."
|
||||||
|
run_cmd("docker stop #{@name.shellescape} >/dev/null 2>&1", true)
|
||||||
run_cmd("docker rm -f #{@name.shellescape} >/dev/null 2>&1", true)
|
run_cmd("docker rm -f #{@name.shellescape} >/dev/null 2>&1", true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user