Low Orbit Flux Logo 2 F

Docker How To Clear Cache

You can clear the cache with the following:



docker kill $(docker ps -q)
docker rm $(docker ps -aq)
docker rmi $(docker images -a -q)

You might only want to clear out unused stuff:



docker image prune -a -f

Alternative Method to Clear Cache

Stop the docker service:



systemctl stop docker 

Wipe out all of these files:



rm -rf /var/lib/docker/*

Start Docker back up:



systemctl start docker