3 changed files with 19 additions and 40 deletions
@ -0,0 +1,2 @@ |
|||||
|
--- |
||||
|
docker_storage_driver: overlay2 |
||||
@ -1,27 +1,10 @@ |
|||||
STORAGE_DRIVER=devicemapper |
STORAGE_DRIVER={{ docker_storage_driver }} |
||||
|
{% if docker_storage_driver == 'devicemapper' %} |
||||
DOCKER_ROOT_VOLUME=yes |
DOCKER_ROOT_VOLUME=yes |
||||
|
{% if docker_storage_disk is defined %} |
||||
|
DEVS={{ docker_storage_disk }} |
||||
|
{% endif %} |
||||
{% if docker_storage_vg is defined %} |
{% if docker_storage_vg is defined %} |
||||
VG={{ docker_storage_vg }} |
VG={{ docker_storage_vg }} |
||||
{% endif %} |
{% endif %} |
||||
|
{% endif %} |
||||
# Enable automatic extension of pool by lvm. lvm can monitor |
|
||||
# the pool and automatically extend it when pool is getting full. |
|
||||
AUTO_EXTEND_POOL=true |
|
||||
|
|
||||
# Determines the pool 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. |
|
||||
POOL_AUTOEXTEND_THRESHOLD=80 |
|
||||
|
|
||||
# Determines the amount by which pool 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. |
|
||||
POOL_AUTOEXTEND_PERCENT=20 |
|
||||
|
|
||||
# Create a Logical Volume of 20G for /var/lib/docker |
|
||||
DOCKER_ROOT_VOLUME_SIZE=20G |
|
||||
|
|
||||
# Create a Thinpool Logical Volume of 50G for Container Storage |
|
||||
DATA_SIZE=50G |
|
||||
|
|||||
Loading…
Reference in new issue