Skip to content

Commit

Permalink
filter to stop only this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
albertlatacz committed Jan 6, 2017
1 parent 69e356b commit 8c47186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/restart-after-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ function restartContainer() {
COMMAND="$2"
echo "New version of ${REPOSITORY} available. Deploying..."
docker stop $(docker ps -q --filter ancestor=${REPOSITORY})
docker rm $(docker ps -q -f status=exited)
docker rmi $(docker images -q -f dangling=true)
docker rm $(docker ps -q --filter status=exited --filter ancestor=${REPOSITORY})
docker rmi $(docker images -q --filter dangling=true --filter ancestor=${REPOSITORY})
docker pull ${REPOSITORY}
eval "${COMMAND} ${REPOSITORY}"
}
Expand Down

0 comments on commit 8c47186

Please sign in to comment.