Commit 1426f996 authored by Fernando Verdugo's avatar Fernando Verdugo
Browse files

doc(docker): Clean old images

parent 8762df53
......@@ -3,9 +3,9 @@
read -r -p "Remove images (front - back - mysql) - Are you sure? [Y/n]" response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]] || [[ -z $response ]]; then
docker image rm mysql:5.7
docker image rm ravada/front:latest
docker image rm ravada/back:latest
docker image rm mysql:5.7 -f
docker image rm ravada/front:latest -f
docker image rm ravada/back:latest -f
fi
read -r -p "Remove volume dockerfy_sshkeys - Are you sure? [Y/n]" response
......@@ -20,3 +20,8 @@ if [[ $response =~ ^(yes|y| ) ]] || [[ -z $response ]]; then
rm -rfv /opt/ravada/*
fi
read -r -p "Warning! - Remove Remove all dangling images - Are you sure? [Y/n]" response
response=${response,,} # tolower
if [[ $response =~ ^(yes|y| ) ]] || [[ -z $response ]]; then
docker system prune
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment