Oracle Linux 7.9 上安装 Docker

1、升级 Oracle Linux 和 UEK 到最新版本 (OL 7.9 & UEK5.4):

yum upgrade

[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)

[root@localhost ~]# rpm -qa|grep uek-5
kernel-uek-5.4.17-2036.101.2.el7uek.x86_64

2、安装 yum-config-manager:

yum install yum-utils

3、yum repo 启用 addons :

yum-config-manager --enable *addons
yum repolist
cd /etc/yum.repos.d/
wget http://yum.oracle.com/public-yum-ol7.repo
mv public-yum-ol7.repo.1 public-yum-ol7.repo
yum-config-manager --enable *addons

4、安装 docker-engine:

yum install docker-engine

5、启动docker

systemctl enable docker
systemctl start docker

[root@localhost ~]# docker -v
Docker version 20.10.2, build 2291f61

[root@localhost ~]# docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 2
 Server Version: 20.10.2
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 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: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 269548fa27e0089a8b8278fc4fc781d7f65a939b
 runc version: ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.14.35-1902.3.2.el7uek.x86_64
 Operating System: Oracle Linux Server 7.9
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 7.528GiB
 Name: localhost.localdomain
 ID: P2SS:BCDH:454R:M2OP:GCLR:PIKK:IGND:YDX3:GG73:XHVG:LNW7:5BFZ
 Docker Root Dir: /var/lib/docker
 Debug Mode: true
  File Descriptors: 29
  Goroutines: 41
  System Time: 2021-01-06T19:47:27.715805238+08:00
  EventsListeners: 0
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Registry Mirrors:
  https://6kx4zyno.mirror.aliyuncs.com/
 Live Restore Enabled: false

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注