当前位置:   article > 正文

银河麒麟V10 ARM架构部署docker_docker arm 安装

docker arm 安装

Docker相关

部署Docker

环境介绍

服务器:Huanghe 2280 V2服务器,鲲鹏服务器主板,鲲鹏920 CPU ARM架构

操作系统:银河麒麟V10

在银河麒麟V10下安装docker
查看服务器信息
# 查看系统版本
[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)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16

注意:该系统是aarch64架构,dockerhub上的大部分镜像都是x86_64架构下的,在使用dockerhub等平台的镜像时,一定要注意其架构是否支持aarch64

下载并安装docker-ce

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/431418?site
推荐阅读
相关标签
  

闽ICP备14008679号