Commit e089a552 authored by Cooper, Caleb's avatar Cooper, Caleb
Browse files

Update rse-bash-modules.sh

parent d8978872
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
Markdown is supported
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