Skip to content

docker daemon should support support default option for --storage-opts "size" parameter for supported drivers. #30491

@imkin

Description

@imkin

Currently Docker create and run commands supports the --storage-opt "size" param for a few graph drivers.
Documentation: https://docs.docker.com/engine/reference/commandline/run/#set-storage-driver-options-per-container

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.

This issue is to request that the optional "<btrfs/dm/grafdriver>.default_size" param be supported for the docker daemon --storage-opts for the supported drivers[in the above list] so that a global predicatble value could be set if the user does not pass any.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/daemonCore Enginekind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions