04dc65
% storage.conf(5) Container Storage Configuration File
04dc65
% Dan Walsh
04dc65
% May 2017
04dc65
04dc65
# NAME
04dc65
storage.conf - Syntax of Container Storage configuration file
04dc65
04dc65
# DESCRIPTION
04dc65
The STORAGE configuration file specifies all of the available container storage options
04dc65
for tools using shared container storage, but in a TOML format that can be more easily modified
04dc65
and versioned.
04dc65
04dc65
# FORMAT
04dc65
The [TOML format][toml] is used as the encoding of the configuration file.
04dc65
Every option and subtable listed here is nested under a global "storage" table.
04dc65
No bare options are used. The format of TOML can be simplified to:
04dc65
04dc65
    [table]
04dc65
    option = value
04dc65
04dc65
    [table.subtable1]
04dc65
    option = value
04dc65
04dc65
    [table.subtable2]
04dc65
    option = value
04dc65
04dc65
## STORAGE TABLE
04dc65
04dc65
The `storage` table supports the following options:
04dc65
04dc65
**graphroot**=""
04dc65
  container storage graph dir (default: "/var/lib/containers/storage")
04dc65
  Default directory to store all writable content created by container storage programs
04dc65
04dc65
**runroot**=""
04dc65
  container storage run dir (default: "/var/run/containers/storage")
04dc65
  Default directory to store all temporary writable content created by container storage programs
04dc65
04dc65
**driver**=""
04dc65
  container storage driver (default is "overlay")
04dc65
  Default Copy On Write (COW) container storage driver
04dc65
04dc65
### STORAGE OPTIONS TABLE
04dc65
04dc65
The `storage.options` table supports the following options:
04dc65
04dc65
**additionalimagestores**=[]
04dc65
  Paths to additional container image stores. Usually these are read/only and stored on remote network shares.
04dc65
04dc65
**size**=""
04dc65
  Maximum size of a container image.  Default is 10GB.  This flag can be used to set quota
04dc65
  on the size of container images.
04dc65
04dc65
**override_kernel_check**=""
04dc65
  Tell storage drivers to ignore kernel version checks.  Some storage drivers assume that if a kernel is too
04dc65
  old, the driver is not supported.  But for kernels that have had the drivers backported, this flag
04dc65
  allows users to override the checks
04dc65
7b6e32
[storage.options.thinpool]
7b6e32
7b6e32
Storage Options for thinpool
7b6e32
7b6e32
The `storage.options.thinpool` table supports the following options:
7b6e32
7b6e32
**autoextend_percent**=""
7b6e32
7b6e32
Tells the thinpool driver the amount by which the thinpool needs to be grown. This is specified in terms of % of pool size. So a value of 20 means that when threshold is hit, pool will be grown by 20% of existing pool size. (Default is 20%)
7b6e32
7b6e32
**autoextend_threshold**=""
7b6e32
7b6e32
Tells the driver the thinpool extension threshold in terms of percentage of pool size. For example, if threshold is 60, that means when pool is 60% full, threshold has been hit. (80% is the default)
7b6e32
7b6e32
**basesize**=""
7b6e32
7b6e32
Specifies the size to use when creating the base device, which limits the size of images and containers. (10g is the default)
7b6e32
7b6e32
**blocksize**=""
7b6e32
7b6e32
Specifies a custom blocksize to use for the thin pool. (64k is the default)
7b6e32
7b6e32
**directlvm_device**=""
7b6e32
7b6e32
Specifies a custom block storage device to use for the thin pool. Required if you setup devicemapper
7b6e32
7b6e32
**directlvm_device_force**=""
7b6e32
7b6e32
Tells driver to wipe device (directlvm_device) even if device already has a filesystem.  Default is False
7b6e32
7b6e32
**fs**="xfs"
7b6e32
7b6e32
Specifies the filesystem type to use for the base device. (Default is xfs)
7b6e32
7b6e32
**log_level**=""
7b6e32
7b6e32
Sets the log level of devicemapper.
7b6e32
7b6e32
    0: LogLevelSuppress 0 (Default)
7b6e32
    2: LogLevelFatal
7b6e32
    3: LogLevelErr
7b6e32
    4: LogLevelWarn
7b6e32
    5: LogLevelNotice
7b6e32
    6: LogLevelInfo
7b6e32
    7: LogLevelDebug
7b6e32
7b6e32
**min_free_space**=""
7b6e32
7b6e32
Specifies the min free space percent in a thin pool require for new device creation to succeed. Valid values are from 0% - 99%. Value 0% disables (10% is the default)
7b6e32
7b6e32
**mkfsarg**=""
7b6e32
7b6e32
Specifies extra mkfs arguments to be used when creating the base device.
7b6e32
7b6e32
**mountopt**=""
7b6e32
7b6e32
Specifies extra mount options used when mounting the thin devices.
7b6e32
7b6e32
**use_deferred_removal**=""
7b6e32
7b6e32
Marks device for deferred removal.  If the device is in use when it driver attempts to remove it, driver will tell the kernel to remove it as soon as possible.  (Default is true).
7b6e32
7b6e32
**use_deferred_deletion**=""
7b6e32
7b6e32
Marks device for deferred deletion. If the device is in use when it driver attempts to delete it, driver continue to attempt to delete device every 30 seconds, or when it restarts.  (Default is true).
7b6e32
7b6e32
**xfs_nospace_max_retries**=""
7b6e32
7b6e32
Specifies the maximum number of retries XFS should attempt to complete IO when ENOSPC (no space) error is returned by underlying storage device. (Default is 0, which means to try continuously.
7b6e32
04dc65
# HISTORY
04dc65
May 2017, Originally compiled by Dan Walsh <dwalsh@redhat.com>
04dc65
Format copied from crio.conf man page created by Aleksa Sarai <asarai@suse.de>