fedora环境安装docker
[root@fedora ~]# dnf install docker-ce
Fedora 30 - x86_64 - Updates - aliyun 31 kB/s | 2.5 kB 00:00
Failed to synchronize cache for repo 'updates'
Ignoring repositories: updates
Last metadata expiration check: 0:00:43 ago on Mon 05 Aug 2019 10:42:14 PM CST.
Dependencies resolved.
============================================================================================================================================
Package Architecture Version Repository Size
============================================================================================================================================
Installing:
docker-ce x86_64 3:19.03.1-3.fc30 docker-ce-stable 24 M
Installing dependencies:
containerd.io x86_64 1.2.6-3.3.fc30 docker-ce-stable 21 M
docker-ce-cli x86_64 1:19.03.1-3.fc30 docker-ce-stable 39 M
container-selinux noarch 2:2.95-1.gite3ebc68.fc30 fedora 46 k
libcgroup x86_64 0.41-21.fc30 fedora 61 k
Transaction Summary
============================================================================================================================================
Install 5 Packages
Total download size: 85 M
Installed size: 355 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): containerd.io-1.2.6-3.3.fc30.x86_64.rpm 1.3 MB/s | 21 MB 00:16
(2/5): container-selinux-2.95-1.gite3ebc68.fc30.noarch.rpm 213 kB/s | 46 kB 00:00
(3/5): libcgroup-0.41-21.fc30.x86_64.rpm 255 kB/s | 61 kB 00:00
(4/5): docker-ce-cli-19.03.1-3.fc30.x86_64.rpm 1.3 MB/s | 39 MB 00:29
(5/5): docker-ce-19.03.1-3.fc30.x86_64.rpm 693 kB/s | 24 MB 00:35
--------------------------------------------------------------------------------------------------------------------------------------------
Total 2.4 MB/s | 85 MB 00:35
warning: /var/cache/dnf/docker-ce-stable-ab24de44335f5bb6/packages/containerd.io-1.2.6-3.3.fc30.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Docker CE Stable - x86_64 1.4 kB/s | 1.6 kB 00:01
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://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/fedora/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 : container-selinux-2:2.95-1.gite3ebc68.fc30.noarch 1/5
Running scriptlet: container-selinux-2:2.95-1.gite3ebc68.fc30.noarch 1/5
Installing : containerd.io-1.2.6-3.3.fc30.x86_64 2/5
Running scriptlet: containerd.io-1.2.6-3.3.fc30.x86_64 2/5
Running scriptlet: libcgroup-0.41-21.fc30.x86_64 3/5
Installing : libcgroup-0.41-21.fc30.x86_64 3/5
Installing : docker-ce-cli-1:19.03.1-3.fc30.x86_64 4/5
Running scriptlet: docker-ce-cli-1:19.03.1-3.fc30.x86_64 4/5
Installing : docker-ce-3:19.03.1-3.fc30.x86_64 5/5
Running scriptlet: docker-ce-3:19.03.1-3.fc30.x86_64 5/5
Verifying : containerd.io-1.2.6-3.3.fc30.x86_64 1/5
Verifying : docker-ce-3:19.03.1-3.fc30.x86_64 2/5
Verifying : docker-ce-cli-1:19.03.1-3.fc30.x86_64 3/5
Verifying : container-selinux-2:2.95-1.gite3ebc68.fc30.noarch 4/5
Verifying : libcgroup-0.41-21.fc30.x86_64 5/5
Installed:
docker-ce-3:19.03.1-3.fc30.x86_64 containerd.io-1.2.6-3.3.fc30.x86_64 docker-ce-cli-1:19.03.1-3.fc30.x86_64
container-selinux-2:2.95-1.gite3ebc68.fc30.noarch libcgroup-0.41-21.fc30.x86_64
Complete!