Difference between revisions of "/etc/docker/daemon.json"
Jump to navigation
Jump to search
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <code>/etc/docker/daemon.json</code> (Ref: https://docs.docker.com/engine/reference/commandline/dockerd/) | + | <code>[[/etc/docker/]]daemon.json</code> (Ref: https://docs.docker.com/engine/reference/commandline/dockerd/) |
− | |||
− | |||
+ | * In [[Ubuntu 20.04 LTS]] by default do not exists <code>/etc/docker/daemon.json</code> | ||
+ | * macOS: <code>[[~/.docker/daemon.json]]</code> | ||
Line 13: | Line 13: | ||
"data-root": "[[/srv/]]XXXX" | "data-root": "[[/srv/]]XXXX" | ||
} | } | ||
+ | |||
+ | "[[registry-mirrors]]": | ||
== Configure Docker as [[Prometheus]] target == | == Configure Docker as [[Prometheus]] target == | ||
Line 18: | Line 20: | ||
https://docs.docker.com/config/daemon/prometheus/ | https://docs.docker.com/config/daemon/prometheus/ | ||
{ | { | ||
− | "metrics-addr" : "127.0.0.1:9323", | + | "metrics-addr" : "127.0.0.1:[[9323]]", |
"[[experimental]]" : true | "[[experimental]]" : true | ||
} | } | ||
− | + | * <code>[[docker --help]]</code> | |
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | ||
− | |||
== Related terms == | == Related terms == | ||
Line 112: | Line 30: | ||
* <code>[[/var/lib/docker/containers/hash of the container/hostconfig.json]]</code> | * <code>[[/var/lib/docker/containers/hash of the container/hostconfig.json]]</code> | ||
* <code>[[systemctl restart]] docker.service</code> | * <code>[[systemctl restart]] docker.service</code> | ||
+ | * <code>[[~/.docker/config.json]]</code> | ||
+ | * <code>[[docker info]]</code> | ||
== See also == | == See also == |
Latest revision as of 15:46, 29 August 2024
/etc/docker/daemon.json
(Ref: https://docs.docker.com/engine/reference/commandline/dockerd/)
- In Ubuntu 20.04 LTS by default do not exists
/etc/docker/daemon.json
- macOS:
~/.docker/daemon.json
Options[edit]
{ "insecure-registries" : [ "hostname.cloudapp.net:5000" ] }
{ "data-root": "/srv/XXXX" }
"registry-mirrors":
Configure Docker as Prometheus target[edit]
https://docs.docker.com/config/daemon/prometheus/
{ "metrics-addr" : "127.0.0.1:9323", "experimental" : true }
Related terms[edit]
/var/lib/docker/
/var/lib/docker/containers/hash of the container/hostconfig.json
systemctl restart docker.service
~/.docker/config.json
docker info
See also[edit]
- Docker:
docker-compose
, Docker Desktop, Docker Scout, Docker Swarm, Docker Volumes, Docker images management, docker network,docker inspect
,docker volume inspect
,Dockerfile
, Docker Engine release notes,docker kill
,moby
, Docker-in-Docker,docker context
,buildx
,docker tag
,docker system prune
, Docker Hub,hub-tool, /etc/docker/daemon.json
,hostconfig.json
, dockerd, logs, Docker logging, Backup,docker service
,depends on
,--dns, --filter
,--mount
,docker login
,docker build
,apt remove docker.io
,.dockerignore
, docker context ls |docker-machine, .docker/
, PWD,$HOME/.docker/config.json
, Docker ID,--env-file, docker --help
Advertising: