(Try to) stop old container before removing it.

This commit is contained in:
Fabian Schlenz 2020-11-06 06:45:57 +01:00
parent 5a562e2e90
commit f7b9535089
1 changed files with 1 additions and 0 deletions

1
dup.rb
View File

@ -311,6 +311,7 @@ class Container
def stop_and_remove
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)
end