Commit 99b1a3

2026-02-06 10:08:33 theophile: docker prune & check for zombie containers
/dev/null .. docker/maintenance.md
@@ 0,0 1,21 @@
+ # Maintenance
+
+ ## Containers
+
+ Regularly check that containers whose services have either moved or been removed, are not still running
+
+ ```bash
+ # List containers running.
+ docker compose ls
+ # Kill a container that should not still be running.
+ # The <id> is found in the list above.
+ docker kill <id>
+ ```
+
+ ## Space
+
+ ### Pruning
+
+ > Docker takes a conservative approach to cleaning up unused objects (often referred to as "garbage collection"), such as images, containers, volumes, and networks. These objects **are generally not removed unless you explicitly ask Docker to do so**. This can cause Docker to use extra disk space. For each type of object, Docker provides a prune command. In addition, you can use docker system prune to clean up multiple types of objects at once.
+
+ - [Prune unused Docker objects Docker Docs](https://docs.docker.com/engine/manage-resources/pruning/)
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9