kylin arm sp3 安装docker
#cat /etc/kylin-release
64位的操作系统
# uname -p
aarch64
Linux 内核版本 ≥ 3.10
# uname -r
4.19.90-23.8.v2101.ky10.aarch64
iptables 版本 ≥ 1.4
# iptables --version
iptables v1.8.1 (legacy)
yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
3.1、选择并下载 docker-ce 二进制包文件
官网下载地址:https://download.docker.com/linux/static/stable/aarch64/
# wget https://download.docker.com/linux/static/stable/aarch64/docker-20.10.7.tgz
3.2、解压下载好的压缩包
# tar -zxvf docker-20.10.7.tgz
3.3、移动解压出来的二进制文件到 /usr/bin 目录中
# cp docker/* /usr/bin/
3.4、测试启动
# dockerd
# vi /usr/lib/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
#---------------------------------------------------------------------------#
# vi /etc/docker/daemon.json
#---------------------------------------------------------------------------#
{
"registry-mirrors": ["https://registry.docker-cn.com"],
"exec-opts": ["native.cgroupdriver=systemd"]
}
#---------------------------------------------------------------------------#
# systemctl daemon-reload
# systemctl start docker
# systemctl status docker
# docker -v