liveBook · Manning

Daemon.json

As explained in Learn Docker in a Month of Lunches, Second Edition

daemon.json is Docker Engine's JSON configuration file for daemon settings such as image storage and permitted insecure registries.

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

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Explains settings, platform locations, JSON editing, and restart steps, but does not detail every available daemon option.
Examples
Uses registry.local:5010, an insecure-registries JSON block, Docker restart commands, and docker info verification.
What it assumes
Assumes a Docker Engine or Docker Desktop installation and teaches the configuration structure from the beginning.
What you can do after
Operate/configure Docker to permit a local insecure registry and reload the daemon settings.
How it connects
Connects Docker Engine with Docker Desktop, JSON configuration, and insecure registries.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.