Commit 0928991a authored by Cooper, Caleb's avatar Cooper, Caleb
Browse files


parent 026dcf76
......@@ -2,9 +2,9 @@ func_rse_docker_cleanup() {
if [[ ! 'docker' =~ $(groups) ]]; then
sudo gpasswd -a "${USER}" 'docker'
docker stop $(docker ps -aq) || true
docker rm $(docker ps -a -q) || true
docker rmi $(docker images -q) || true
docker stop $(docker ps -aq) 2>/dev/null || true
docker rm $(docker ps -a -q) 2>/dev/null|| true
docker rmi $(docker images -q) 2>/dev/null || 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