赞
踩
sudo tar -xvf docker-26.0.1.tgz
sudo cp docker/* /usr/bin/
sudo mkdir -p /etc/docker
- sudo vi /etc/docker/daemon.json
-
-
- #写入以下内容
- {
- "bip": "10.233.0.1/22"
- }
- sudo sh -c "cat > /usr/lib/systemd/system/docker.service << EOF
- [Unit]
- Description=Docker Application Container Engine
- Documentation=https://docs.docker.com
- After=network-online.target firewalld.service
- Wants=network-online.target
- [Service]
- Type=notify
- ExecStart=/usr/bin/dockerd --selinux-enabled=false
- ExecReload=/bin/kill -s HUP \$MAINPID
- LimitNOFILE=infinity
- LimitNPROC=infinity
- LimitCORE=infinity
- TimeoutStartSec=0
- Delegate=yes
- KillMode=process
- Restart=on-failure
- StartLimitBurst=3
- StartLimitInterval=60s
- [Install]
- WantedBy=multi-user.target
- EOF"
- sudo systemctl daemon-reload
- sudo systemctl start docker
- sudo systemctl enable docker
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。