Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 618 Bytes

File metadata and controls

42 lines (28 loc) · 618 Bytes

C

Cleanup unnecessary space

  yes | docker system prune

  # Remove volumes
  docker volume ls -f dangling=true | awk 'NR > 1 {print $2}' | xargs docker volume rm

K

Kill running containers

running_containers=$(docker ps -aq)
docker container kill $running_containers
docker container rm   $running_containers

R

Reboot Docker

  sudo systemctl daemon-reload && sudo systemctl restart docker

V

View names of running containers

docker ps -q | xargs -n1 docker inspect --format '{{.Name}}'

View occupied space

docker system df