简体   繁体   中英

Docker Base Image Size configured in daemon.json

Moving docker daemon configuration from CMDto /etc/docker/daemon.json. I placed below to change base image size from default 10.7G to 20G but daemon failed to start

{
  "storage-opts": [
     {"dm.basesize": "10G" }
  ],
  "graph": "/home/ashwaghmare/docker/docker-data"
}

~

Change in syntax helped configure base image size

{
  "storage-opts": ["dm.basesize=20G"],
  "graph": "/home/ashwaghmare/docker/docker-data"
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM