Difference between revisions of "Docker system prune"

From wikieduonline
Jump to navigation Jump to search
Line 17: Line 17:
 
</pre>
 
</pre>
  
* <code>[[docker system prune --volumes]]</code> (Related: <code>[[docker volumes prune]]</code>)
+
* <code>[[docker system prune --volumes]]</code> (Related [[Docker Volumes]]: <code>[[docker volumes prune]]</code>)
  
  

Revision as of 13:24, 18 January 2020

https://docs.docker.com/engine/reference/commandline/system_prune/. Since API 1.25+ (v 1.13) 01/2017 announcement


docker system prune


docker system prune -a Remove all unused images not just dangling ones

docker system prune -a
WARNING! This will remove:
        - all stopped containers
        - all networks not used by at least one container
        - all images without at least one container associated to them
        - all build cache
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B


Related commands

See also

  • https://docs.docker.com/v17.12/edge/engine/reference/commandline/system_info/
  • https://docs.docker.com/v17.12/edge/engine/reference/commandline/system_events/
  • Advertising: