docker system df -v regarding image sizes?docker system df -vThe docker system df -v command provides a verbose summary of disk usage by images, containers, volumes, and build cache. It helps identify which objects consume the most space.
Removing a container does not delete its associated volumes by default. Volumes store persistent data and remain on disk, consuming space until explicitly removed.
The json-file log driver supports max-size and max-file options to limit log file size and number of rotated files. Other drivers like syslog or journald do not support these options.
The recommended order is to prune stopped containers first, then unused images, followed by unused volumes, and finally the build cache. This order avoids dependency conflicts and safely frees disk space.
Using a read-only root filesystem limits container writes to only designated volumes. This prevents unexpected disk usage growth inside containers. Unlimited disk quota or disabling logs can cause issues. Avoiding volumes leads to data loss and harder management.