![]() However, we can instruct it to remove the unused volumes using the –volumes option. We should note that by default, this command doesn’t remove any volume to prevent data loss. Now, let’s remove the container and its image using the system prune child command: $ docker system prune -a -fĠcfeb6d3f7bdc8dc2e41d56987ff30b3e4a6c9b555c640a377ef38eb5fd3cdafĭeleted: sha256:fe7b1e9bf7922fbc22281bcc6b4f5ac8f1a7b4278929880940978c42fc9d0229Īs we can see, the command deletes the stopped container and the image associated with it to reclaim the disk space. We’ll start by stopping the web-server-01 container that we created earlier: $ docker container stop web-server-01 This command removes all unused networks, images, containers, dangling build caches, and optionally, volumes. We can use the system prune child command to remove multiple unused objects in one go. However, this isn’t the most efficient way. LIGHT - Only 11.So far, we’ve removed individual Docker objects, such as images and volumes, using the prune child command. ![]() See what others are saying about the DayLite Hiker Sunlight Because the park is so far north, there are major shifts in the amount of daylight throughout the year.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |