docker下载地址:https://download.docker.com/linux/static/stable/
所有版本都有,根据你的需求去选择。我这里下载的docker版本号是20.10.23
# wget https://download.docker.com/linux/static/stable/aarch64/docker-20.10.12.tgz
# tar zxvf docker-20.10.12.tgz
# cp 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 --selinux-enabled=false --insecure-registry=127.0.0.1
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
执行如下命令:
# chmod +x /etc/systemd/system/docker.service
# systemctl daemon-reload
# systemctl start docker
# systemctl enable docker
# docker --version
Docker version 20.10.12, build 7155243
配置加速器加速下载docker镜像
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://gg3gwnry.mirror.aliyuncs.com"]
}
重启服务:
systemctl daemon-reload
systemctl restart docker
docker 离线安装_docker_weixin_39651041-GitCode 开源社区
版权说明
文章采用: 《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权。版权声明:未标注转载均为本站原创,转载时请以链接形式注明文章出处。如有侵权、不妥之处,请联系站长删除。敬请谅解!