|
@@ -35,7 +35,7 @@ Using **Debian**.
|
|
|
- For local networks (not Swarm overlays), it defaults to pool `172.17.0.0/12` with `/16` allocations, resulting in a maximum of `2^(16-12)=16` allocations.
|
|
|
1. (Recommended) Change default DNS servers for containers:
|
|
|
- In `/etc/docker/daemon.json`, set `"dns": ["1.1.1.1", "2606:4700:4700::1111"]` (example using Cloudflare) (3 servers max).
|
|
|
- - It defaults to `8.8.8.8` and `8.8.4.4` (Google).
|
|
|
+ - It defaults to `8.8.8.8` and `8.8.4.4` (Google)."userland-proxy": false
|
|
|
1. (Optional) Change the logging options (JSON file driver):
|
|
|
- It defaults to the JSON file driver with a single file of unlimited size.
|
|
|
- Configured globally in `/etc/docker/daemon.json`.
|
|
@@ -43,6 +43,8 @@ Using **Debian**.
|
|
|
- Set the max file size: `"log-opts": { "max-size": "10m" }`
|
|
|
- Set the max number of files (for log rotation): `"log-opts": { "max-file": "5" }`
|
|
|
- Set the compression for rotated files: `"log-opts": { "compress": "enabled" }`
|
|
|
+1. (Recommended) Disable the userland proxy (no longer recommended to use):
|
|
|
+ - In `/etc/docker/daemon.json`, set `"userland-proxy": false`.
|
|
|
1. (Optional) Enable Prometheus metrics endpoint:
|
|
|
- This only exports internal Docker metrics, not anything about the containers (use cAdvisor for that).
|
|
|
- In `/etc/docker/daemon.json`, set `"experimental": true` and `"metrics-addr": "[::]:9323"`.
|