What does Docker run --storage-opt size = XYZ do?
The Docker run cli command has a parameter --storage-opt
used like this:
docker run --storage-opt size=XYZ ....nginx
Does the size " XYZ
" above indicate the CoW level or the total size of the base image and CoW layer as described in this link ?
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.