Difference between revisions of "/etc/docker/daemon.json"
Jump to navigation
Jump to search
(15 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> | ||
== Options == | == Options == | ||
{ | { | ||
− | "insecure-registries" : [ "hostname.cloudapp.net:5000" ] | + | "insecure-[[registries]]" : [ "hostname.cloudapp.net:5000" ] |
} | } | ||
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 == | ||
* <code>[[/var/lib/docker/]]</code> | * <code>[[/var/lib/docker/]]</code> | ||
− | * <code>[[hostconfig.json]]</code> | + | * <code>[[/var/lib/docker/containers/hash of the container/hostconfig.json]]</code> |
+ | * <code>[[systemctl restart]] docker.service</code> | ||
+ | * <code>[[~/.docker/config.json]]</code> | ||
+ | * <code>[[docker info]]</code> | ||
== See also == | == See also == | ||
− | * {{ | + | * {{dockerd}} |
+ | |||
[[Category:Docker]] | [[Category:Docker]] |
Latest revision as of 11:36, 22 October 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: dockerd, docker (command), dockerd-ce (dockerd), docker-proxy, Docker Kubernetes Service (DKS),
/var/lib/docker/, /var/run/docker.sock
, 9323, /etc/docker/daemon.json
Advertising: