What does Docker run --storage-opt size = XYZ do?
1 answer
From: https://docs.docker.com/engine/reference/commandline/run/#set-storage-driver-options-per-container
docker run -it --storage-opt size=120G fedora /bin/bash
This (size) will set the size of the root containers to 120G at creation time. This option is only available for devicemapper, btrfs, overlay2, windowsfilter, and zfs. For devicemapper, btrfs, windowsfilter, and zfs, the user cannot enter a size smaller than the default base size. For overlay2 storage driver, the size parameter is only available if xfs and installed with the pquota mount option. Under these conditions, the user can transfer any size smaller than the support fs size.
0
source to share