更新 docker 相关文档
This commit is contained in:
parent
9e54ad2ffe
commit
6066cb4ec6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user