Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
1426f996
Commit
1426f996
authored
Mar 30, 2020
by
Fernando Verdugo
Browse files
doc(docker): Clean old images
parent
8762df53
Changes
1
Hide whitespace changes
Inline
Side-by-side
dockerfy/utils/remove_all.sh
View file @
1426f996
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment