1)下载docker-ce: https://mirrors.aliyun.com/docker-ce/linux/static/stable/x86_64/
如:wget https://mirrors.aliyun.com/docker-ce/linux/static/stable/x86_64/docker-26.1.3.tgz
2)
tar -xzvf docker-26.1.3.tgz cd docker cp -r ./* /usr/bin/
3) vi /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 -H unix://var/run/docker.sock 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
4)
chmod +x /etc/systemd/system/docker.service systemctl daemon-reload systemctl start docker
=======
如果出现权限问题执行
setenforce 0
可以在/etc/docker/daemon.json 添加一下国内的docker 镜像地址
{
"registry-mirrors": ["https://sdf.aliyuncs.com"],
"data-root": "/mnt/dockerdata"
}
标签:bin,安装,ce,etc,https,docker,com From: https://www.cnblogs.com/testzcy/p/18332586