CentOS8 安装Docker

检查os版本

# cat /proc/version
Linux version 4.18.0-193.28.1.el8_2.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)) #1 SMP Thu Oct 22 00:20:22 UTC 2020
 

1:添加必要的Docker存储库

 # sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo

2:找到Docker CE的可安装版本

# dnf list docker-ce --showduplicates | sort -r
Last metadata expiration check: 0:00:01 ago on Thu 26 Aug 2021 07:06:32 PM CST.
docker-ce.x86_64                3:20.10.8-3.el8                 docker-ce-stable
docker-ce.x86_64                3:20.10.7-3.el8                 docker-ce-stable
docker-ce.x86_64                3:20.10.6-3.el8                 docker-ce-stable
docker-ce.x86_64                3:20.10.5-3.el8                 docker-ce-stable
docker-ce.x86_64                3:20.10.4-3.el8                 docker-ce-stable
docker-ce.x86_64                3:20.10.3-3.el8                 docker-ce-stable
docker-ce.x86_64                3:20.10.2-3.el8                 docker-ce-stable
docker-ce.x86_64                3:20.10.1-3.el8                 docker-ce-stable
docker-ce.x86_64                3:20.10.0-3.el8                 docker-ce-stable
docker-ce.x86_64                3:19.03.15-3.el8                docker-ce-stable
docker-ce.x86_64                3:19.03.14-3.el8                docker-ce-stable
docker-ce.x86_64                3:19.03.13-3.el8                docker-ce-stable
Docker CE Stable - x86_64                       7.1 kB/s |  15 kB     00:02    
Available Packages


3:安装指定版本

# sudo dnf install docker-ce-3:20.10.8-3.el8

Last metadata expiration check: 0:02:07 ago on Thu 26 Aug 2021 07:06:32 PM CST.
Dependencies resolved.
============================================================================================================================================================================================================
 Package                                             Architecture                     Version                                                              Repository                                  Size
============================================================================================================================================================================================================
Installing:
 docker-ce                                           x86_64                           3:20.10.8-3.el8                                                      docker-ce-stable                            22 M
Installing dependencies:
 container-selinux                                   noarch                           2:2.164.1-1.module_el8.4.0+886+c9a8d9ad                              AppStream                                   52 k
 containerd.io                                       x86_64                           1.4.9-3.1.el8                                                        docker-ce-stable                            30 M
 docker-ce-cli                                       x86_64                           1:20.10.8-3.el8                                                      docker-ce-stable                            29 M
 docker-ce-rootless-extras                           x86_64                           20.10.8-3.el8                                                        docker-ce-stable                           4.6 M
 docker-scan-plugin                                  x86_64                           0.8.0-3.el8                                                          docker-ce-stable                           4.2 M
 fuse-common                                         x86_64                           3.2.1-12.el8                                                         BaseOS                                      21 k
 fuse-overlayfs                                      x86_64                           1.6-1.module_el8.4.0+886+c9a8d9ad                                    AppStream                                   73 k
 fuse3                                               x86_64                           3.2.1-12.el8                                                         BaseOS                                      50 k
 fuse3-libs                                          x86_64                           3.2.1-12.el8                                                         BaseOS                                      94 k
 libcgroup                                           x86_64                           0.41-19.el8                                                          BaseOS                                      70 k
 libslirp                                            x86_64                           4.3.1-1.module_el8.4.0+575+63b40ad7                                  AppStream                                   69 k
 slirp4netns                                         x86_64                           1.1.8-1.module_el8.4.0+641+6116a774                                  AppStream                                   51 k
Enabling module streams:
 container-tools                                                                      rhel8                                                                                                                

Transaction Summary
============================================================================================================================================================================================================
Install  13 Packages

Total download size: 90 M
Installed size: 377 M
Is this ok [y/N]:

4:Y

Is this ok [y/N]: y
Downloading Packages:
(1/13): fuse-overlayfs-1.6-1.module_el8.4.0+886+c9a8d9ad.x86_64.rpm                                                                                                         1.0 MB/s |  73 kB     00:00    
(2/13): libslirp-4.3.1-1.module_el8.4.0+575+63b40ad7.x86_64.rpm                                                                                                             896 kB/s |  69 kB     00:00    
(3/13): fuse-common-3.2.1-12.el8.x86_64.rpm                                                                                                                                 6.5 MB/s |  21 kB     00:00    
(4/13): fuse3-3.2.1-12.el8.x86_64.rpm                                                                                                                                       6.2 MB/s |  50 kB     00:00    
(5/13): container-selinux-2.164.1-1.module_el8.4.0+886+c9a8d9ad.noarch.rpm                                                                                                  453 kB/s |  52 kB     00:00    
(6/13): slirp4netns-1.1.8-1.module_el8.4.0+641+6116a774.x86_64.rpm                                                                                                          772 kB/s |  51 kB     00:00    
(7/13): fuse3-libs-3.2.1-12.el8.x86_64.rpm                                                                                                                                  1.2 MB/s |  94 kB     00:00    
(8/13): libcgroup-0.41-19.el8.x86_64.rpm                                                                                                                                    944 kB/s |  70 kB     00:00    
(9/13): containerd.io-1.4.9-3.1.el8.x86_64.rpm                                                                                                                              990 kB/s |  30 MB     00:30    
(10/13): docker-ce-rootless-extras-20.10.8-3.el8.x86_64.rpm                                                                                                                 372 kB/s | 4.6 MB     00:12    
(11/13): docker-ce-cli-20.10.8-3.el8.x86_64.rpm                                                                                                                             629 kB/s |  29 MB     00:47    
(12/13): docker-scan-plugin-0.8.0-3.el8.x86_64.rpm                                                                                                                          226 kB/s | 4.2 MB     00:18    
(13/13): docker-ce-20.10.8-3.el8.x86_64.rpm                                                                                                                                                                       67 kB/s |  22 MB     05:38    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                            274 kB/s |  90 MB     05:38     
warning: /var/cache/dnf/docker-ce-stable-fa9dc42ab4cec2f4/packages/containerd.io-1.4.9-3.1.el8.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Docker CE Stable - x86_64                                                                                                                                                                                        4.6 kB/s | 1.6 kB     00:00    
Importing GPG key 0x621E9F35:
 Userid     : "Docker Release (CE rpm) <docker@docker.com>"
 Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
 From       : https://download.docker.com/linux/centos/gpg
Is this ok [y/N]: 

5:y

Is this ok [y/N]: y
Downloading Packages:
(1/13): fuse-overlayfs-1.6-1.module_el8.4.0+886+c9a8d9ad.x86_64.rpm                                                                                                         1.0 MB/s |  73 kB     00:00    
(2/13): libslirp-4.3.1-1.module_el8.4.0+575+63b40ad7.x86_64.rpm                                                                                                             896 kB/s |  69 kB     00:00    
(3/13): fuse-common-3.2.1-12.el8.x86_64.rpm                                                                                                                                 6.5 MB/s |  21 kB     00:00    
(4/13): fuse3-3.2.1-12.el8.x86_64.rpm                                                                                                                                       6.2 MB/s |  50 kB     00:00    
(5/13): container-selinux-2.164.1-1.module_el8.4.0+886+c9a8d9ad.noarch.rpm                                                                                                  453 kB/s |  52 kB     00:00    
(6/13): slirp4netns-1.1.8-1.module_el8.4.0+641+6116a774.x86_64.rpm                                                                                                          772 kB/s |  51 kB     00:00    
(7/13): fuse3-libs-3.2.1-12.el8.x86_64.rpm                                                                                                                                  1.2 MB/s |  94 kB     00:00    
(8/13): libcgroup-0.41-19.el8.x86_64.rpm                                                                                                                                    944 kB/s |  70 kB     00:00    
(9/13): containerd.io-1.4.9-3.1.el8.x86_64.rpm                                                                                                                              990 kB/s |  30 MB     00:30    
(10/13): docker-ce-rootless-extras-20.10.8-3.el8.x86_64.rpm                                                                                                                 372 kB/s | 4.6 MB     00:12    
(11/13): docker-ce-cli-20.10.8-3.el8.x86_64.rpm                                                                                                                             629 kB/s |  29 MB     00:47    
(12/13): docker-scan-plugin-0.8.0-3.el8.x86_64.rpm                                                                                                                          226 kB/s | 4.2 MB     00:18    
(13/13): docker-ce-20.10.8-3.el8.x86_64.rpm                                                                                                                                                                       67 kB/s |  22 MB     05:38    
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                            274 kB/s |  90 MB     05:38     
warning: /var/cache/dnf/docker-ce-stable-fa9dc42ab4cec2f4/packages/containerd.io-1.4.9-3.1.el8.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Docker CE Stable - x86_64                                                                                                                                                                                        4.6 kB/s | 1.6 kB     00:00    
Importing GPG key 0x621E9F35:
 Userid     : "Docker Release (CE rpm) <docker@docker.com>"
 Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
 From       : https://download.docker.com/linux/centos/gpg
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                         1/1 
  Installing       : docker-scan-plugin-0.8.0-3.el8.x86_64                                                                                                                                                                                  1/13 
  Running scriptlet: docker-scan-plugin-0.8.0-3.el8.x86_64                                                                                                                                                                                  1/13 
  Installing       : docker-ce-cli-1:20.10.8-3.el8.x86_64                                                                                                                                                                                   2/13 
  Running scriptlet: docker-ce-cli-1:20.10.8-3.el8.x86_64                                                                                                                                                                                   2/13 
  Running scriptlet: container-selinux-2:2.164.1-1.module_el8.4.0+886+c9a8d9ad.noarch                                                                                                                                                       3/13 
  Installing       : container-selinux-2:2.164.1-1.module_el8.4.0+886+c9a8d9ad.noarch                                                                                                                                                       3/13 
  Running scriptlet: container-selinux-2:2.164.1-1.module_el8.4.0+886+c9a8d9ad.noarch                                                                                                                                                       3/13 
  Installing       : containerd.io-1.4.9-3.1.el8.x86_64                                                                                                                                                                                     4/13 
  Running scriptlet: containerd.io-1.4.9-3.1.el8.x86_64                                                                                                                                                                                     4/13 
  Running scriptlet: libcgroup-0.41-19.el8.x86_64                                                                                                                                                                                           5/13 
  Installing       : libcgroup-0.41-19.el8.x86_64                                                                                                                                                                                           5/13 
  Running scriptlet: libcgroup-0.41-19.el8.x86_64                                                                                                                                                                                           5/13 
  Installing       : fuse3-libs-3.2.1-12.el8.x86_64                                                                                                                                                                                         6/13 
  Running scriptlet: fuse3-libs-3.2.1-12.el8.x86_64                                                                                                                                                                                         6/13 
  Installing       : fuse-common-3.2.1-12.el8.x86_64                                                                                                                                                                                        7/13 
  Installing       : fuse3-3.2.1-12.el8.x86_64                                                                                                                                                                                              8/13 
  Installing       : fuse-overlayfs-1.6-1.module_el8.4.0+886+c9a8d9ad.x86_64                                                                                                                                                                9/13 
  Running scriptlet: fuse-overlayfs-1.6-1.module_el8.4.0+886+c9a8d9ad.x86_64                                                                                                                                                                9/13 
  Installing       : libslirp-4.3.1-1.module_el8.4.0+575+63b40ad7.x86_64                                                                                                                                                                   10/13 
  Installing       : slirp4netns-1.1.8-1.module_el8.4.0+641+6116a774.x86_64                                                                                                                                                                11/13 
  Installing       : docker-ce-rootless-extras-20.10.8-3.el8.x86_64                                                                                                                                                                        12/13 
  Running scriptlet: docker-ce-rootless-extras-20.10.8-3.el8.x86_64                                                                                                                                                                        12/13 
  Installing       : docker-ce-3:20.10.8-3.el8.x86_64                                                                                                                                                                                      13/13 
  Running scriptlet: docker-ce-3:20.10.8-3.el8.x86_64                                                                                                                                                                                      13/13 
  Running scriptlet: container-selinux-2:2.164.1-1.module_el8.4.0+886+c9a8d9ad.noarch                                                                                                                                                      13/13 
  Running scriptlet: docker-ce-3:20.10.8-3.el8.x86_64                                                                                                                                                                                      13/13 
  Verifying        : container-selinux-2:2.164.1-1.module_el8.4.0+886+c9a8d9ad.noarch                                                                                                                                                       1/13 
  Verifying        : fuse-overlayfs-1.6-1.module_el8.4.0+886+c9a8d9ad.x86_64                                                                                                                                                                2/13 
  Verifying        : libslirp-4.3.1-1.module_el8.4.0+575+63b40ad7.x86_64                                                                                                                                                                    3/13 
  Verifying        : slirp4netns-1.1.8-1.module_el8.4.0+641+6116a774.x86_64                                                                                                                                                                 4/13 
  Verifying        : fuse-common-3.2.1-12.el8.x86_64                                                                                                                                                                                        5/13 
  Verifying        : fuse3-3.2.1-12.el8.x86_64                                                                                                                                                                                              6/13 
  Verifying        : fuse3-libs-3.2.1-12.el8.x86_64                                                                                                                                                                                         7/13 
  Verifying        : libcgroup-0.41-19.el8.x86_64                                                                                                                                                                                           8/13 
  Verifying        : containerd.io-1.4.9-3.1.el8.x86_64                                                                                                                                                                                     9/13 
  Verifying        : docker-ce-3:20.10.8-3.el8.x86_64                                                                                                                                                                                      10/13 
  Verifying        : docker-ce-cli-1:20.10.8-3.el8.x86_64                                                                                                                                                                                  11/13 
  Verifying        : docker-ce-rootless-extras-20.10.8-3.el8.x86_64                                                                                                                                                                        12/13 
  Verifying        : docker-scan-plugin-0.8.0-3.el8.x86_64                                                                                                                                                                                 13/13 

Installed:
  container-selinux-2:2.164.1-1.module_el8.4.0+886+c9a8d9ad.noarch             containerd.io-1.4.9-3.1.el8.x86_64                docker-ce-3:20.10.8-3.el8.x86_64             docker-ce-cli-1:20.10.8-3.el8.x86_64                               
  docker-ce-rootless-extras-20.10.8-3.el8.x86_64                               docker-scan-plugin-0.8.0-3.el8.x86_64             fuse-common-3.2.1-12.el8.x86_64              fuse-overlayfs-1.6-1.module_el8.4.0+886+c9a8d9ad.x86_64            
  fuse3-3.2.1-12.el8.x86_64                                                    fuse3-libs-3.2.1-12.el8.x86_64                    libcgroup-0.41-19.el8.x86_64                 libslirp-4.3.1-1.module_el8.4.0+575+63b40ad7.x86_64                
  slirp4netns-1.1.8-1.module_el8.4.0+641+6116a774.x86_64                      

Complete!

安装完成

6:# docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
7:启用docker守护进程

# sudo systemctl enable --now docker
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
[root@zzzz ~]# docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

8:以下命令将您的用户添加到docker组:

sudo usermod -aG docker $USER

安装GIT

yum install git
Last metadata expiration check: 0:20:07 ago on Thu 26 Aug 2021 07:06:32 PM CST.
Dependencies resolved.
============================================================================================================================================================================================================
 Package                                            Architecture                         Version                                                              Repository                               Size
============================================================================================================================================================================================================
Installing:
 git                                                x86_64                               2.27.0-1.el8                                                         AppStream                               164 k
Installing dependencies:
 git-core                                           x86_64                               2.27.0-1.el8                                                         AppStream                               5.7 M
 git-core-doc                                       noarch                               2.27.0-1.el8                                                         AppStream                               2.5 M
 perl-Data-Dumper                                   x86_64                               2.167-399.el8                                                        BaseOS                                   58 k
 perl-Digest                                        noarch                               1.17-395.el8                                                         AppStream                                27 k
 perl-Digest-MD5                                    x86_64                               2.55-396.el8                                                         AppStream                                37 k
 perl-Encode                                        x86_64                               4:2.97-3.el8                                                         BaseOS                                  1.5 M
 perl-Error                                         noarch                               1:0.17025-2.el8                                                      AppStream                                46 k
 perl-File-Temp                                     noarch                               0.230.600-1.el8                                                      BaseOS                                   63 k
 perl-Getopt-Long                                   noarch                               1:2.50-4.el8                                                         BaseOS                                   63 k
 perl-Git                                           noarch                               2.27.0-1.el8                                                         AppStream                                77 k
 perl-HTTP-Tiny                                     noarch                               0.074-1.el8                                                          BaseOS                                   58 k
 perl-MIME-Base64                                   x86_64                               3.15-396.el8                                                         BaseOS                                   31 k
 perl-Net-SSLeay                                    x86_64                               1.88-1.module_el8.3.0+410+ff426aa3                                   AppStream                               379 k
 perl-Pod-Escapes                                   noarch                               1:1.07-395.el8                                                       BaseOS                                   20 k
 perl-Pod-Perldoc                                   noarch                               3.28-396.el8                                                         BaseOS                                   86 k
 perl-Pod-Simple                                    noarch                               1:3.35-395.el8                                                       BaseOS                                  213 k
 perl-Pod-Usage                                     noarch                               4:1.69-395.el8                                                       BaseOS                                   34 k
 perl-Storable                                      x86_64                               1:3.11-3.el8                                                         BaseOS                                   98 k
 perl-Term-ANSIColor                                noarch                               4.06-396.el8                                                         BaseOS                                   46 k
 perl-Term-Cap                                      noarch                               1.17-395.el8                                                         BaseOS                                   23 k
 perl-TermReadKey                                   x86_64                               2.37-7.el8                                                           AppStream                                40 k
 perl-Text-ParseWords                               noarch                               3.30-395.el8                                                         BaseOS                                   18 k
 perl-Time-Local                                    noarch                               1:1.280-1.el8                                                        BaseOS                                   34 k
 perl-URI                                           noarch                               1.73-3.el8                                                           AppStream                               116 k
 perl-libnet                                        noarch                               3.11-3.el8                                                           AppStream                               121 k
 perl-podlators                                     noarch                               4.11-1.el8                                                           BaseOS                                  118 k
Installing weak dependencies:
 perl-IO-Socket-IP                                  noarch                               0.39-5.el8                                                           AppStream                                47 k
 perl-IO-Socket-SSL                                 noarch                               2.066-4.module_el8.3.0+410+ff426aa3                                  AppStream                               298 k
 perl-Mozilla-CA                                    noarch                               20160104-7.module_el8.3.0+416+dee7bcef                               AppStream                                15 k
Enabling module streams:
 perl                                                                                    5.26                                                                                                              
 perl-IO-Socket-SSL                                                                      2.066                                                                                                             
 perl-libwww-perl                                                                        6.34                                                                                                              

Transaction Summary
============================================================================================================================================================================================================
Install  30 Packages

Total download size: 12 M
Installed size: 59 M
Is this ok [y/N]: y
Downloading Packages:
(1/30): git-2.27.0-1.el8.x86_64.rpm                                                                                                                                         1.8 MB/s | 164 kB     00:00    
(2/30): perl-Digest-1.17-395.el8.noarch.rpm                                                                                                                                 381 kB/s |  27 kB     00:00    
(3/30): perl-Digest-MD5-2.55-396.el8.x86_64.rpm                                                                                                                             6.4 MB/s |  37 kB     00:00    
(4/30): git-core-doc-2.27.0-1.el8.noarch.rpm                                                                                                                                 14 MB/s | 2.5 MB     00:00    
(5/30): perl-Error-0.17025-2.el8.noarch.rpm                                                                                                                                 659 kB/s |  46 kB     00:00    
(6/30): perl-IO-Socket-IP-0.39-5.el8.noarch.rpm                                                                                                                             7.9 MB/s |  47 kB     00:00    
(7/30): perl-Git-2.27.0-1.el8.noarch.rpm                                                                                                                                    1.2 MB/s |  77 kB     00:00    
(8/30): perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch.rpm                                                                                                   4.8 MB/s |  15 kB     00:00    
(9/30): perl-IO-Socket-SSL-2.066-4.module_el8.3.0+410+ff426aa3.noarch.rpm                                                                                                    13 MB/s | 298 kB     00:00    
(10/30): perl-TermReadKey-2.37-7.el8.x86_64.rpm                                                                                                                             5.9 MB/s |  40 kB     00:00    
(11/30): perl-URI-1.73-3.el8.noarch.rpm                                                                                                                                      12 MB/s | 116 kB     00:00    
(12/30): perl-libnet-3.11-3.el8.noarch.rpm                                                                                                                                   14 MB/s | 121 kB     00:00    
(13/30): perl-Net-SSLeay-1.88-1.module_el8.3.0+410+ff426aa3.x86_64.rpm                                                                                                      5.3 MB/s | 379 kB     00:00    
(14/30): perl-Encode-2.97-3.el8.x86_64.rpm                                                                                                                                   52 MB/s | 1.5 MB     00:00    
(15/30): perl-Data-Dumper-2.167-399.el8.x86_64.rpm                                                                                                                          852 kB/s |  58 kB     00:00    
(16/30): perl-Getopt-Long-2.50-4.el8.noarch.rpm                                                                                                                              10 MB/s |  63 kB     00:00    
(17/30): perl-File-Temp-0.230.600-1.el8.noarch.rpm                                                                                                                          896 kB/s |  63 kB     00:00    
(18/30): perl-HTTP-Tiny-0.074-1.el8.noarch.rpm                                                                                                                              853 kB/s |  58 kB     00:00    
(19/30): perl-Pod-Escapes-1.07-395.el8.noarch.rpm                                                                                                                           7.0 MB/s |  20 kB     00:00    
(20/30): git-core-2.27.0-1.el8.x86_64.rpm                                                                                                                                    12 MB/s | 5.7 MB     00:00    
(21/30): perl-Pod-Perldoc-3.28-396.el8.noarch.rpm                                                                                                                           1.2 MB/s |  86 kB     00:00    
(22/30): perl-Pod-Usage-1.69-395.el8.noarch.rpm                                                                                                                              11 MB/s |  34 kB     00:00    
(23/30): perl-Storable-3.11-3.el8.x86_64.rpm                                                                                                                                1.2 MB/s |  98 kB     00:00    
(24/30): perl-Term-ANSIColor-4.06-396.el8.noarch.rpm                                                                                                                         12 MB/s |  46 kB     00:00    
(25/30): perl-Term-Cap-1.17-395.el8.noarch.rpm                                                                                                                              347 kB/s |  23 kB     00:00    
(26/30): perl-Text-ParseWords-3.30-395.el8.noarch.rpm                                                                                                                       6.1 MB/s |  18 kB     00:00    
(27/30): perl-Pod-Simple-3.35-395.el8.noarch.rpm                                                                                                                            970 kB/s | 213 kB     00:00    
(28/30): perl-podlators-4.11-1.el8.noarch.rpm                                                                                                                                31 MB/s | 118 kB     00:00    
(29/30): perl-MIME-Base64-3.15-396.el8.x86_64.rpm                                                                                                                           107 kB/s |  31 kB     00:00    
(30/30): perl-Time-Local-1.280-1.el8.noarch.rpm                                                                                                                             470 kB/s |  34 kB     00:00    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                        16 MB/s |  12 MB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                    1/1 
  Installing       : perl-MIME-Base64-3.15-396.el8.x86_64                                                                                                                                              1/30 
  Installing       : perl-Time-Local-1:1.280-1.el8.noarch                                                                                                                                              2/30 
  Installing       : perl-IO-Socket-IP-0.39-5.el8.noarch                                                                                                                                               3/30 
  Installing       : perl-Text-ParseWords-3.30-395.el8.noarch                                                                                                                                          4/30 
  Installing       : perl-File-Temp-0.230.600-1.el8.noarch                                                                                                                                             5/30 
  Installing       : git-core-2.27.0-1.el8.x86_64                                                                                                                                                      6/30 
  Installing       : git-core-doc-2.27.0-1.el8.noarch                                                                                                                                                  7/30 
  Installing       : perl-Digest-1.17-395.el8.noarch                                                                                                                                                   8/30 
  Installing       : perl-Digest-MD5-2.55-396.el8.x86_64                                                                                                                                               9/30 
  Installing       : perl-Net-SSLeay-1.88-1.module_el8.3.0+410+ff426aa3.x86_64                                                                                                                        10/30 
  Installing       : perl-Term-Cap-1.17-395.el8.noarch                                                                                                                                                11/30 
  Installing       : perl-Term-ANSIColor-4.06-396.el8.noarch                                                                                                                                          12/30 
  Installing       : perl-Storable-1:3.11-3.el8.x86_64                                                                                                                                                13/30 
  Installing       : perl-Pod-Escapes-1:1.07-395.el8.noarch                                                                                                                                           14/30 
  Installing       : perl-Data-Dumper-2.167-399.el8.x86_64                                                                                                                                            15/30 
  Installing       : perl-TermReadKey-2.37-7.el8.x86_64                                                                                                                                               16/30 
  Installing       : perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch                                                                                                                    17/30 
  Installing       : perl-Encode-4:2.97-3.el8.x86_64                                                                                                                                                  18/30 
  Installing       : perl-Pod-Simple-1:3.35-395.el8.noarch                                                                                                                                            19/30 
  Installing       : perl-Getopt-Long-1:2.50-4.el8.noarch                                                                                                                                             20/30 
  Installing       : perl-podlators-4.11-1.el8.noarch                                                                                                                                                 21/30 
  Installing       : perl-Pod-Usage-4:1.69-395.el8.noarch                                                                                                                                             22/30 
  Installing       : perl-Pod-Perldoc-3.28-396.el8.noarch                                                                                                                                             23/30 
  Installing       : perl-HTTP-Tiny-0.074-1.el8.noarch                                                                                                                                                24/30 
  Installing       : perl-IO-Socket-SSL-2.066-4.module_el8.3.0+410+ff426aa3.noarch                                                                                                                    25/30 
  Installing       : perl-libnet-3.11-3.el8.noarch                                                                                                                                                    26/30 
  Installing       : perl-URI-1.73-3.el8.noarch                                                                                                                                                       27/30 
  Installing       : perl-Error-1:0.17025-2.el8.noarch                                                                                                                                                28/30 
  Installing       : perl-Git-2.27.0-1.el8.noarch                                                                                                                                                     29/30 
  Installing       : git-2.27.0-1.el8.x86_64                                                                                                                                                          30/30 
  Running scriptlet: git-2.27.0-1.el8.x86_64                                                                                                                                                          30/30 
  Verifying        : git-2.27.0-1.el8.x86_64                                                                                                                                                           1/30 
  Verifying        : git-core-2.27.0-1.el8.x86_64                                                                                                                                                      2/30 
  Verifying        : git-core-doc-2.27.0-1.el8.noarch                                                                                                                                                  3/30 
  Verifying        : perl-Digest-1.17-395.el8.noarch                                                                                                                                                   4/30 
  Verifying        : perl-Digest-MD5-2.55-396.el8.x86_64                                                                                                                                               5/30 
  Verifying        : perl-Error-1:0.17025-2.el8.noarch                                                                                                                                                 6/30 
  Verifying        : perl-Git-2.27.0-1.el8.noarch                                                                                                                                                      7/30 
  Verifying        : perl-IO-Socket-IP-0.39-5.el8.noarch                                                                                                                                               8/30 
  Verifying        : perl-IO-Socket-SSL-2.066-4.module_el8.3.0+410+ff426aa3.noarch                                                                                                                     9/30 
  Verifying        : perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch                                                                                                                    10/30 
  Verifying        : perl-Net-SSLeay-1.88-1.module_el8.3.0+410+ff426aa3.x86_64                                                                                                                        11/30 
  Verifying        : perl-TermReadKey-2.37-7.el8.x86_64                                                                                                                                               12/30 
  Verifying        : perl-URI-1.73-3.el8.noarch                                                                                                                                                       13/30 
  Verifying        : perl-libnet-3.11-3.el8.noarch                                                                                                                                                    14/30 
  Verifying        : perl-Data-Dumper-2.167-399.el8.x86_64                                                                                                                                            15/30 
  Verifying        : perl-Encode-4:2.97-3.el8.x86_64                                                                                                                                                  16/30 
  Verifying        : perl-File-Temp-0.230.600-1.el8.noarch                                                                                                                                            17/30 
  Verifying        : perl-Getopt-Long-1:2.50-4.el8.noarch                                                                                                                                             18/30 
  Verifying        : perl-HTTP-Tiny-0.074-1.el8.noarch                                                                                                                                                19/30 
  Verifying        : perl-MIME-Base64-3.15-396.el8.x86_64                                                                                                                                             20/30 
  Verifying        : perl-Pod-Escapes-1:1.07-395.el8.noarch                                                                                                                                           21/30 
  Verifying        : perl-Pod-Perldoc-3.28-396.el8.noarch                                                                                                                                             22/30 
  Verifying        : perl-Pod-Simple-1:3.35-395.el8.noarch                                                                                                                                            23/30 
  Verifying        : perl-Pod-Usage-4:1.69-395.el8.noarch                                                                                                                                             24/30 
  Verifying        : perl-Storable-1:3.11-3.el8.x86_64                                                                                                                                                25/30 
  Verifying        : perl-Term-ANSIColor-4.06-396.el8.noarch                                                                                                                                          26/30 
  Verifying        : perl-Term-Cap-1.17-395.el8.noarch                                                                                                                                                27/30 
  Verifying        : perl-Text-ParseWords-3.30-395.el8.noarch                                                                                                                                         28/30 
  Verifying        : perl-Time-Local-1:1.280-1.el8.noarch                                                                                                                                             29/30 
  Verifying        : perl-podlators-4.11-1.el8.noarch                                                                                                                                                 30/30 

Installed:
  git-2.27.0-1.el8.x86_64                                                    git-core-2.27.0-1.el8.x86_64                                               git-core-doc-2.27.0-1.el8.noarch                   
  perl-Data-Dumper-2.167-399.el8.x86_64                                      perl-Digest-1.17-395.el8.noarch                                            perl-Digest-MD5-2.55-396.el8.x86_64                
  perl-Encode-4:2.97-3.el8.x86_64                                            perl-Error-1:0.17025-2.el8.noarch                                          perl-File-Temp-0.230.600-1.el8.noarch              
  perl-Getopt-Long-1:2.50-4.el8.noarch                                       perl-Git-2.27.0-1.el8.noarch                                               perl-HTTP-Tiny-0.074-1.el8.noarch                  
  perl-IO-Socket-IP-0.39-5.el8.noarch                                        perl-IO-Socket-SSL-2.066-4.module_el8.3.0+410+ff426aa3.noarch              perl-MIME-Base64-3.15-396.el8.x86_64               
  perl-Mozilla-CA-20160104-7.module_el8.3.0+416+dee7bcef.noarch              perl-Net-SSLeay-1.88-1.module_el8.3.0+410+ff426aa3.x86_64                  perl-Pod-Escapes-1:1.07-395.el8.noarch             
  perl-Pod-Perldoc-3.28-396.el8.noarch                                       perl-Pod-Simple-1:3.35-395.el8.noarch                                      perl-Pod-Usage-4:1.69-395.el8.noarch               
  perl-Storable-1:3.11-3.el8.x86_64                                          perl-Term-ANSIColor-4.06-396.el8.noarch                                    perl-Term-Cap-1.17-395.el8.noarch                  
  perl-TermReadKey-2.37-7.el8.x86_64                                         perl-Text-ParseWords-3.30-395.el8.noarch                                   perl-Time-Local-1:1.280-1.el8.noarch               
  perl-URI-1.73-3.el8.noarch                                                 perl-libnet-3.11-3.el8.noarch                                              perl-podlators-4.11-1.el8.noarch                   

Complete!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在CentOS 8上安装Docker,您可以按照以下步骤进行操作: 1. 首先,设置Docker的镜像仓库。您可以使用以下命令将Docker的镜像仓库添加到yum配置管理器中: ``` $ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo \[1\] ``` 2. 如果您不使用Alibaba Cloud Linux 3专用的dnf源兼容插件,您需要注释掉/etc/yum.repos.d下的CentOS源。然后,运行以下命令安装Docker: ``` $ dnf -y install docker-ce --nobest \[2\] ``` 3. 如果您需要手动下载Docker的repo文件,可以使用以下命令: ``` $ curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo \[3\] ``` 请按照上述步骤进行操作,即可在CentOS 8上成功安装Docker。 #### 引用[.reference_title] - *1* [centos8安装docker](https://blog.csdn.net/qq_42740955/article/details/107844607)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* *3* [Centos8 安装Docker](https://blog.csdn.net/piaomiao_/article/details/121403857)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值