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’

  • Multiple websites running in docker containers, how to implement?
  • Docker-compose mounts are going to work with TCP host?
  • How to access a host port (bind with ssh -R) from a container?
  • How to disable Docker container to restart for `gcloud preview app run`
  • How do I use map[string]struct{}
  • Resend messages from RabbitMQ works strange
  • 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 ??

  • Cross-Host Communication: Ambassador pattern versus port exposition
  • Docker pull gives error unkown blob for microsoft/windowsservercore
  • Docker in AWS Elastic Beanstalk: executable file not found in $PATH"
  • Can I use Docker for production deployment of a Rails application?
  • Run nodejs application on subpath with haproxy
  • How is docker able to mount a volume from docker client into a docker container running on docker host?
  • 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.