![]() In older versions, volumes are pruned by default. ![]() Note: The –volumes flag was introduced in Docker 17.06.1. To additionally prune volumes as well, you can use the –volumes option as follows : This is to prevent important data from being removed if no container is currently using the volume. Which will also remove all stopped containers and all build cache. Removing unused Docker objectsĭocker offers a command that will remove all unused containers, images (unreferenced and dangling), networks and (optionally) volumes. In this article we will go through some commands which help achieve this clean-up procedure. ![]() If these are no longer used or needed they may consume additional disk space.įortunately Docker has a garbage collection mechanism that help remove unused containers, images and data volumes so that it can free up disk space and tidy up your system. If you have been working with Docker for some time, it is likely that you may have accumulated a high number of images, data volumes as well as containers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |