Commit 25daf1

2024-06-09 14:39:46 Qwas: 新增 docker 代理配置
/dev/null .. proxy/docker.md
@@ 0,0 1,23 @@
+ # docker 代理配置
+
+ 为 Docker 守护进程配置代理
+
+ ```sh
+ vi /etc/docker/daemon.json
+ ```
+
+ ```json
+ {
+ "proxies": {
+ "http-proxy": "http://127.0.0.1:7890",
+ "https-proxy": "http://127.0.0.1:7890",
+ "no-proxy": "*.aliyun.com,*.*.aliyuncs.com,127.0.0.0/8"
+ }
+ }
+ ```
+
+ 参考链接
+
+ [Configure the Docker daemon to use a proxy server](https://docs.docker.com/config/daemon/systemd/#httphttps-proxy)
+
+ [Configure the Docker daemon](https://docs.docker.com/config/daemon/#configure-the-docker-daemon)
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9