c38bfdc
% storage.conf(5) Container Storage Configuration File
c38bfdc
% Dan Walsh
c38bfdc
% May 2017
c38bfdc
c38bfdc
# NAME
c38bfdc
storage.conf - Syntax of Container Storage configuration file
c38bfdc
c38bfdc
# DESCRIPTION
c38bfdc
The STORAGE configuration file specifies all of the available container storage options
c38bfdc
for tools using shared container storage, but in a TOML format that can be more easily modified
c38bfdc
and versioned.
c38bfdc
c38bfdc
# FORMAT
c38bfdc
The [TOML format][toml] is used as the encoding of the configuration file.
c38bfdc
Every option and subtable listed here is nested under a global "storage" table.
c38bfdc
No bare options are used. The format of TOML can be simplified to:
c38bfdc
c38bfdc
    [table]
c38bfdc
    option = value
c38bfdc
c38bfdc
    [table.subtable1]
c38bfdc
    option = value
c38bfdc
c38bfdc
    [table.subtable2]
c38bfdc
    option = value
c38bfdc
c38bfdc
## STORAGE TABLE
c38bfdc
c38bfdc
The `storage` table supports the following options:
c38bfdc
c38bfdc
**graphroot**=""
c38bfdc
  container storage graph dir (default: "/var/lib/containers/storage")
c38bfdc
  Default directory to store all writable content created by container storage programs
c38bfdc
c38bfdc
**runroot**=""
c38bfdc
  container storage run dir (default: "/var/run/containers/storage")
c38bfdc
  Default directory to store all temporary writable content created by container storage programs
c38bfdc
c38bfdc
**driver**=""
7c8484c
  container storage driver (default: "overlay")
c38bfdc
  Default Copy On Write (COW) container storage driver
c38bfdc
70baf34
### STORAGE OPTIONS TABLE 
a3d3451
a3d3451
The `storage.options` table supports the following options:
a3d3451
c38bfdc
**additionalimagestores**=[]
a3d3451
  Paths to additional container image stores. Usually these are read/only and stored on remote network shares.
a3d3451
a3d3451
**size**=""
7c8484c
  Maximum size of a container image.   This flag can be used to set quota on the size of container images. (default: 10GB)
a3d3451
a3d3451
**override_kernel_check**=""
a3d3451
  Tell storage drivers to ignore kernel version checks.  Some storage drivers assume that if a kernel is too
a3d3451
  old, the driver is not supported.  But for kernels that have had the drivers backported, this flag
a3d3451
  allows users to override the checks
c38bfdc
7c8484c
**mount_program**=""
7c8484c
  Specifies the path to a custom program to use instead for mounting the file system.
7c8484c
7c8484c
**mountopt**=""
7c8484c
7c8484c
  Comma separated list of default options to be used to mount container images.  Suggested value "nodev".
7c8484c
70baf34
[storage.options.thinpool]
70baf34
70baf34
Storage Options for thinpool
70baf34
70baf34
The `storage.options.thinpool` table supports the following options:
70baf34
70baf34
**autoextend_percent**=""
70baf34
7c8484c
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: 20%)
70baf34
70baf34
**autoextend_threshold**=""
70baf34
7c8484c
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. (default: 80%)
70baf34
70baf34
**basesize**=""
70baf34
7c8484c
Specifies the size to use when creating the base device, which limits the size of images and containers. (default: 10g)
70baf34
70baf34
**blocksize**=""
70baf34
7c8484c
Specifies a custom blocksize to use for the thin pool. (default: 64k)
70baf34
70baf34
**directlvm_device**=""
70baf34
7c8484c
Specifies a custom block storage device to use for the thin pool. Required for using graphdriver `devicemapper`.
70baf34
70baf34
**directlvm_device_force**=""
70baf34
7c8484c
Tells driver to wipe device (directlvm_device) even if device already has a filesystem.  (default: false)
70baf34
70baf34
**fs**="xfs"
70baf34
7c8484c
Specifies the filesystem type to use for the base device. (default: xfs)
70baf34
70baf34
**log_level**=""
70baf34
70baf34
Sets the log level of devicemapper.
70baf34
7c8484c
    0: LogLevelSuppress 0 (default)
70baf34
    2: LogLevelFatal
70baf34
    3: LogLevelErr
70baf34
    4: LogLevelWarn
70baf34
    5: LogLevelNotice
70baf34
    6: LogLevelInfo
70baf34
    7: LogLevelDebug
70baf34
70baf34
**min_free_space**=""
70baf34
7c8484c
Specifies the min free space percent in a thin pool required for new device creation to succeed. Valid values are from 0% - 99%. Value 0% disables. (default: 10%)
70baf34
70baf34
**mkfsarg**=""
70baf34
70baf34
Specifies extra mkfs arguments to be used when creating the base device.
70baf34
70baf34
**use_deferred_removal**=""
70baf34
7c8484c
Marks devicemapper block device for deferred removal.  If the device is in use when its driver attempts to remove it, the driver tells the kernel to remove the device as soon as possible.  Note this does not free up the disk space, use deferred deletion to fully remove the thinpool.  (default: true).
70baf34
70baf34
**use_deferred_deletion**=""
70baf34
7c8484c
Marks thinpool device for deferred deletion. If the thinpool is in use when the driver attempts to delete it, the driver will attempt to delete device every 30 seconds until successful, or when it restarts.  Deferred deletion permanently deletes the device and all data stored in the device will be lost. (default: true).
70baf34
70baf34
**xfs_nospace_max_retries**=""
70baf34
7c8484c
Specifies the maximum number of retries XFS should attempt to complete IO when ENOSPC (no space) error is returned by underlying storage device. (default: 0, which means to try continuously.)
7c8484c
7c8484c
**ostree_repo=""**
7c8484c
  Tell storage drivers to use the specified OSTree repository.  Some storage drivers, such as overlay, might use
7c8484c
7c8484c
**skip_mount_home=""**
7c8484c
  Tell storage drivers to not create a PRIVATE bind mount on their home directory.
70baf34
c38bfdc
# HISTORY
c38bfdc
May 2017, Originally compiled by Dan Walsh <dwalsh@redhat.com>
c38bfdc
Format copied from crio.conf man page created by Aleksa Sarai <asarai@suse.de>