赞
踩
docker官网下载地址
本示例下载的是:docker-19.03.14.tgz
解压文件
tar xzvf docker-19.03.9.tgz
复制到对应目录
mv docker/* /usr/bin/
vim /etc/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
添加执行权限
chmod +x /etc/systemd/system/docker.service
配置生效
systemctl daemon-reload
systemctl start docker
systemctl enable docker.service
docker -v
Docker version 19.03.9, build 9d988398e7
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。