标签:wan 安装 main contain -o art data- alt har
1,下载 https://download.docker.com/linux/static/stable/x86_64/docker-18.06.3-ce.tgz
2,解压,
tar xzvf docker-18.06.3-ce.tgz
3,复制二进制文件到/usr/bin目录下
cp -ar docker/* /usr/bin/
4,检查是否安装
docker version
5,配置 docker.service文件
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 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 ? EOF
6,启动dockerd服务进程
systemctl daemon-reload systemctl start docker.service
标签:wan 安装 main contain -o art data- alt har
原文地址:https://www.cnblogs.com/Dev0ps/p/10993921.html