赞
踩
服务器:Huanghe 2280 V2服务器,鲲鹏服务器主板,鲲鹏920 CPU ARM架构
操作系统:银河麒麟V10
# 查看系统版本
[root@localhost yum.repos.d]# cat /etc/kylin-release
Kylin Linux Advanced Server release V10 (Tercel)
# 服务器如果是鲲鹏,架构是aarch64
[root@localhost yum.repos.d]# uname -p
aarch64
# 内核版本
[root@localhost yum.repos.d]# uname -r
4.19.90-23.8.v2101.ky10.aarch64
# iptables版本
[root@localhost yum.repos.d]# iptables --version
iptables v1.8.1 (legacy)
注意:该系统是aarch64架构,dockerhub上的大部分镜像都是x86_64架构下的,在使用dockerhub等平台的镜像时,一定要注意其架构是否支持aarch64
ARM架构需要使用安装包离线方式安装。
官网下载地址:https://download.docker.com/linux/static/stable/aarch64/
# 下载
[root@localhost docker]# wget https://download.docker.com/linux/static/stable/aarch64/docker-19.03.15.tgz
[root@localhost docker]# ls
docker-19.03.15.tgz
[root@localhost docker]# tar -xvf docker-19.03.15.tgz
[root@localhost docker]# ls
docker docker-19.03.15.tgz
# 复制docker文件到/usr/bin目录
[root@localhost docker]# mv docker/* /usr/bin/
# 配置添加 systemd
[root@localhost docker]# 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
# 重新加载配置,并启动docker
[root@localhost docker]# systemctl daemon-reload
[root@localhost docker]# systemctl restart docker
[root@localhost docker]# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: active (running) since Mon 2023-02-13 11:43:48 CST; 44s ago
Docs: https://docs.docker.com
Main PID: 115001 (dockerd)
Tasks: 67
Memory: 68.6M
CGroup: /system.slice/docker.service
├─115001 /usr/bin/dockerd
└─115034 containerd --config /var/run/docker/containerd/containerd.toml --log-level info
[root@localhost docker]# docker info
Client:
Debug Mode: false
Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 19.03.15
Storage Driver: overlay2
Backing Filesystem: xfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: ea765aba0d05254012b0b9e595e995c09186427f
runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 4.19.90-23.8.v2101.ky10.aarch64
Operating System: Kylin Linux Advanced Server V10 (Tercel)
OSType: linux
Architecture: aarch64
CPUs: 64
Total Memory: 254.1GiB
Name: localhost.localdomain
ID: 5UUW:BGGM:COSP:TVYJ:HQQW:OMCJ:YDTW:SHVQ:AAUQ:RCLZ:CMH7:3IB5
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。