Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
rse-deployment
rse-sharables
Commits
e089a552
Commit
e089a552
authored
Nov 03, 2019
by
Cooper, Caleb
Browse files
Update rse-bash-modules.sh
parent
d8978872
Changes
1
Hide whitespace changes
Inline
Side-by-side
rse-bash-modules.sh
0 → 100644
View file @
e089a552
func_rse_docker_cleanup
()
{
if
[[
!
'docker'
=
~
$(
groups
)
]]
;
then
sudo
gpasswd
-a
"
${
USER
}
"
'docker'
fi
docker stop
$(
docker ps
-aq
)
||
true
docker
rm
$(
docker ps
-a
-q
)
||
true
docker rmi
$(
docker images
-q
)
||
true
docker image prune
-fa
||
sudo
systemctl restart docker
docker system prune
-fa
||
sudo
systemctl restart docker
}
\ No newline at end of file
Write
Preview
Markdown
is supported
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