Commit 24f25c

2024-10-29 15:38:36 Qwas: -/-
proxy/docker.md ..
@@ 1,6 1,15 @@
- # docker 代理配置
+ # Docker 使用
- 为 Docker 守护进程配置代理
+ ## 安装 Docker 程序
+
+ ```sh
+ curl -fsSL https://get.docker.com -o get-docker.sh
+ sudo DOWNLOAD_URL=https://mirrors.aliyun.com/docker-ce sh get-docker.sh
+ ```
+
+ [ustc docker 文档](https://mirrors.ustc.edu.cn/help/docker-ce.html)
+
+ ## 为 Docker 守护进程配置代理
```sh
vi /etc/docker/daemon.json
@@ 16,6 25,12 @@
}
```
+ > 配置后重启 docker
+
+ ```sh
+ sudo systemctl restart docker
+ ```
+
参考链接
[Configure the Docker daemon to use a proxy server](https://docs.docker.com/config/daemon/systemd/#httphttps-proxy)
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