← Каталог
Справочник по Docker — Структура `daemon.json`
Фрагмент из «Справочник по Docker»: Структура `daemon.json`.
{
"debug": true,
"log-level": "info",
"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"],
"insecure-registries": ["registry.local:5000"],
"registry-mirrors": ["https://mirror.gcr.io"],
"data-root": "/mnt/docker-Data",
"exec-opts": ["native.cgroupdriver=systemd"],
"default-ulimits": {
"nofile": {
"Name": "nofile",
"Hard": 65536,
"Soft": 65536
}
},
"features": {
"buildkit": true
},
"experimental": false,
"userns-remap": "default",
"live-restore": true,
"max-concurrent-downloads": 10,
"max-concurrent-uploads": 5,
"shutdown-timeout": 30
} {
"debug": true,
"log-level": "info",
"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"],
"insecure-registries": ["registry.local:5000"],
"registry-mirrors": ["https://mirror.gcr.io"],
"data-root": "/mnt/docker-Data",
"exec-opts": ["native.cgroupdriver=systemd"],
"default-ulimits": {
"nofile": {
"Name": "nofile",
"Hard": 65536,
"Soft": 65536
}
},
"features": {
"buildkit": true
},
"experimental": false,
"userns-remap": "default",
"live-restore": true,
"max-concurrent-downloads": 10,
"max-concurrent-uploads": 5,
"shutdown-timeout": 30
}