daemon.json is Docker Engine’s JSON configuration file. It controls daemon settings such as image-layer storage, API listeners, and permitted insecure registries. section 5.3
Configure it according to the Docker environment:
- Linux usually stores it in /etc/docker; Windows Server usually uses C:\ProgramData\docker\config. section 5.3
- Docker Desktop exposes the JSON through Settings > Docker Engine. section 5.3
- Restart Docker after changes; Docker Desktop restarts when settings are applied. section 5.3
Allow a local HTTP registry
Add the registry address without deleting existing settings: { "insecure-registries": ["registry.local:5010"] }. Invalid JSON can prevent Docker from restarting. section 5.3
{
"insecure-registries": [
"registry.local:5010"
]
}
Use the configuration listing to compare the required insecure-registries structure with your daemon.json file. section 5.3
