赞
踩
tar zxf docker-18.06.1-ce.tgz
sudo cp docker/* /usr/bin/
sudo dockerd &
docker info
- # 先停止docker服务
- ps -ef|grep docker
-
- kill -9 pid
-
- # 创建docker服务器配置文件
- sudo vi /usr/lib/systemd/system/docker.service
-
- [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
- ExecReload=/bin/kill -s HUP $MAINPID
- LimitNOFILE=infinity
- LimitNPROC=infinity
- TimeoutStartSec=0
- Delegate=yes
- KillMode=process
- Restart=on-failure
- StartLimitBurst=3
- StartLimitInterval=60s
-
- [Install]
- WantedBy=multi-user.target
systemctl start docker
systemctl enable docker
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。