Docker-tips

Some usefull Docker commands

  • Remove all <none> images
docker rm $(docker images -f "dangling=true" -q)
  • Clear contairers history (old containers)
docker rm $(docker ps -a -q)
  • Clear images and history images
docker rmi $(docker images -a -q)
  • Filter (eg: all exited container --filter || -f)
docker ps --filter "status=exited"