Docker Base image size configured in daemon.json

Moving the docker daemon configuration from CMD to /etc/docker/daemon.json. I posted below to resize the default base image from 10.7G to 20G, but daemon failed to start

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

~

+5
source share
1 answer

Changing the syntax helped adjust the size of the base image

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

Source: https://habr.com/ru/post/1262347/


All Articles