To additionally remove any stopped containers and all unused images (not just dangling images), add the -a flag to the command: Purging All Unused or Dangling Images, Containers, Volumes, and Networksĭocker provides a single command that will clean up any resources - images, containers, volumes, and networks - that are dangling (not tagged or associated with a container): Note: The command substitution syntax, command $( command), used in the commands is available in many popular shells, such as bash, zsh, and Windows Powershell. Jump to any section that is relevant to the task you are trying to complete.This guide is in cheat sheet format with self-contained command-line snippets.This cheat sheet-style guide provides a quick reference to commands that are useful for freeing disk space and keeping your system organized by removing unused Docker images, containers, and volumes. As you work with Docker, however, it’s also easy to accumulate an excessive number of unused images, containers, and data volumes that clutter the output and consume disk space.ĭocker gives you all the tools you need to clean up your system from the command line. Docker makes it easy to wrap your applications and services in containers so you can run them anywhere.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |