Docker Configuration
Both docker(1) and dockerd(8) are configured by the same files.
Configuration Files
dockerd(8) is configured primarily with /etc/docker/daemon.json.
Storage
Images are written to /var/lib/docker by default. To configure this, update the configuration file like:
{
"data-root": "/path/to/new/data/root"
}
Volumes
Volumes are written to /var/lib/docker/volumes by default. This location follows the data-root set above.
Registries
docker(1) refuses to use an insecure registry, including one using a self-signed certificate. To circumvent this, update the dockerd(8) configuration like:
{
"insecure-registries": [
"registry.example.com:8080"
]
}