Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 471 Bytes

free_up_space.md

File metadata and controls

24 lines (16 loc) · 471 Bytes

Free up space

$ docker system prune

Removes:

  • all stopped containers
  • all networks not used by at least one container
  • all dangling images
  • all build cache
$ docker system prune -a --volumes

In addition to above, removes:

  • all volumes not used by at least one container
  • all images without at least one container associated to them

More: https://docs.docker.com/engine/reference/commandline/system_prune/