Permalink
Browse files

Destroy must not remove image docker

  • Loading branch information...
duythien committed Dec 20, 2017
1 parent 313ba70 commit 667fd7178b4d4a6032012b642aa94ea602ea19ab
Showing with 1 addition and 2 deletions.
  1. +1 −2 run.sh
View
3 run.sh 100644 → 100755
@@ -27,6 +27,7 @@ cd "$OPSFILES_DOCKER"
if [ 'build' == "$1" ]; then
cd "$APP_PATH"
cp .env.example .env
chmod 777 -R public/
chmod 777 -R content/cache/
chmod 777 -R content/logs
@@ -41,8 +42,6 @@ fi
if [ 'destroy' == "$1" ]; then
# Stop and remove any existing containers
docker rm -f $(docker ps -a -q)
# Delete all images
docker rmi -f $(docker images -q)
fi

0 comments on commit 667fd71

Please sign in to comment.