麒麟V10 ARM离线安装docker
2022-08-04 13:58 williamzheng 阅读(2251) 评论(0) 编辑 收藏 举报- 查看环境
[root@cim-1632-0012 ~]# uname -a
Linux cim-1632-0012.novalocal 4.19.90-23.8.v2101.ky10.aarch64 #1 SMP Mon May 17 17:07:38 CST 2021 aarch64 aarch64 aarch64 GNU/Linux
[root@cim-1632-0012 ~]# cat /proc/version
Linux version 4.19.90-23.8.v2101.ky10.aarch64 (KYLINSOFT@localhost.localdomain) (gcc version 7.3.0 (GCC)) #1 SMP Mon May 17 17:07:38 CST 2021
- 下载安装包
wget https://download.docker.com/linux/static/stable/aarch64/docker-20.10.17.tgz
- 安装docker
# 解压
tar -zxvf docker-20.10.17.tgz -C /software
# 移动到/usr/bin
cd /software
mv /software/docker/* /usr/bin/
# 初始化docker
dockerd
# 注册docker.service服务,将以下内容写入/usr/lib/systemd/system/docker.service
[Unit]
Description=Container Application
After=network.target
Wants=network.service
[Service]
Type=forking
ExecStart=/usr/bin/startdocker
PrivateTmp=true
[Install]
WantedBy=multi-user.target
# 添加开机启动
systemctl daemon-reload
systemctl start docker
systemctl enable docker
WilliamZheng©版权所有 转载请注明出处! 觉得对您有帮助请点个赞哟~ 运维架构师群:833329925