Merge pull request #384 from colnpanic/features/notify-kill-failed

Ignore failures when trying to stop containers.
This commit is contained in:
Paul Lietar
2013-12-17 00:26:32 -08:00
2 changed files with 3 additions and 3 deletions

2
dokku
View File

@@ -59,7 +59,7 @@ case "$1" in
# kill the app when running
if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]]; then
oldid=$(< "$DOKKU_ROOT/$APP/CONTAINER")
docker kill $oldid > /dev/null
docker kill $oldid > /dev/null 2>&1 || true
fi
# start the app

View File

@@ -16,8 +16,8 @@ case "$1" in
if [[ -f "$DOKKU_ROOT/$APP/CONTAINER" ]]; then
ID=$(< "$DOKKU_ROOT/$APP/CONTAINER")
docker stop $ID > /dev/null
docker rm $ID > /dev/null
docker stop $ID > /dev/null || true
docker rm $ID > /dev/null || true
fi
docker images | grep $IMAGE | awk '{print $3}' | xargs docker rmi &> /dev/null &