What does Docker run –storage-opt size=XYZ means?

Docker run cli command has an option “–storage-opt” used like this:

docker run –storage-opt size=XYZ ….nginx’

  • AWS ECS volumes do not share any files
  • ERROR: repository x not found: does not exist or no pull access
  • how to add --auth for mongodb image when using docker-compose?
  • Docker-compose - Redis at instead of
  • Is it possible to see docker swarm internal DNS records?
  • How do I use the “git-like” capabilities of Docker?
  • Q: Is the “XYZ” size specified above refers to the CoW layer or its the total size of base image and CoW layer as discussed in https://docs.docker.com/engine/userguide/storagedriver/imagesandcontainers/#images-and-layers ??

  • gcloud docker not working on Compute Engine VM
  • Mount specific EBS volume to Docker under AWS beanstalk
  • Dial tcp connectex: An attempt was made to access a socket in a way forbidden by its access permissions
  • How the docker git repo is showing different tags in pull requests like status/need-review
  • Relative path with zip in vrt file (vsizip)?
  • Docker Network Namespace
  • One Solution collect form web for “What does Docker run –storage-opt size=XYZ means?”

    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 allow to set the container rootfs size to 120G at
    creation time. This option is only available for the devicemapper,
    btrfs, overlay2, windowsfilter and zfs graph drivers. For the
    devicemapper, btrfs, windowsfilter and zfs graph drivers, user cannot
    pass a size less than the Default BaseFS Size. For the overlay2
    storage driver, the size option is only available if the backing fs is
    xfs and mounted with the pquota mount option. Under these conditions,
    user can pass any size less then the backing fs size.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.