更新 docker 相关文档

This commit is contained in:
xking 2023-10-27 13:37:18 +08:00
parent 9e54ad2ffe
commit 6066cb4ec6
Signed by: chenkuangwei
GPG Key ID: 931C79A9747F5F82

View File

@ -3,7 +3,6 @@
# Linux 安装 Docker
## 安装脚本
一键安装脚本Linux系统都支持
@ -16,8 +15,6 @@
curl -fsSL https://get.docker.com | bash -s docker --mirror AzureChinaCloud
```
## oracle linxu
1. 执行以下命令以安装Docker依赖项
@ -114,8 +111,23 @@ EOF
## docker 配置代理
```
sudo mkdir -p /etc/systemd/system/docker.service.d
sudo touch /etc/systemd/system/docker.service.d/proxy.conf
```
```
[Service]
Environment="HTTP_PROXY=http://proxy.example.com:8080/"
Environment="HTTPS_PROXY=http://proxy.example.com:8080/"
Environment="NO_PROXY=localhost,127.0.0.1,.example.com"
```
重启 服务
```
sudo systemctl daemon-reload
sudo systemctl restart docker
```
## 迁移目录
主要是为了不让Docker镜像容器占用系统盘的容量
@ -281,7 +293,6 @@ EOF
## 常见问题
容器内没有网 不能解析dns