Mengupdate package
Shell
x
6
1
[root@my-labs ~]# sudo dnf update -y
2
Last metadata expiration check: 0:08:40 ago on Sun Sep 8 15:07:56 2024.
3
Dependencies resolved.
4
Nothing to do.
5
Complete!
6
[root@my-labs ~]#
Menginstall yum utils
Shell
1
37
37
1
[root@my-labs ~]# sudo dnf install -y dnf-utils
2
Last metadata expiration check: 0:08:48 ago on Sun Sep 8 15:07:56 2024.
3
Dependencies resolved.
4
==================================================================================================================
5
Package Architecture Version Repository Size
6
==================================================================================================================
7
Installing:
8
yum-utils noarch 4.3.0-13.el9 baseos 35 k
9
10
Transaction Summary
11
==================================================================================================================
12
Install 1 Package
13
14
Total download size: 35 k
15
Installed size: 23 k
16
Downloading Packages:
17
yum-utils-4.3.0-13.el9.noarch.rpm 277 kB/s | 35 kB 00:00
18
------------------------------------------------------------------------------------------------------------------
19
Total 36 kB/s | 35 kB 00:00
20
Running transaction check
21
Transaction check succeeded.
22
Running transaction test
23
Transaction test succeeded.
24
Running transaction
25
Preparing : 1/1
26
Installing : yum-utils-4.3.0-13.el9.noarch 1/1
27
Running scriptlet: yum-utils-4.3.0-13.el9.noarch 1/1
28
Verifying : yum-utils-4.3.0-13.el9.noarch 1/1
29
30
Installed:
31
yum-utils-4.3.0-13.el9.noarch
32
33
Complete!
34
[root@my-labs ~]#
35
36
37
Menambahkan repository
Shell
1
3
1
[root@my-labs ~]# sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
2
Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
3
[root@my-labs ~]#
Menginstall docker
Shell
1
109
109
1
[root@my-labs ~]# sudo dnf install -y docker-ce docker-ce-cli containerd.io
2
Docker CE Stable - x86_64 169 kB/s | 55 kB 00:00
3
Dependencies resolved.
4
==================================================================================================================
5
Package Architecture Version Repository Size
6
==================================================================================================================
7
Installing:
8
containerd.io x86_64 1.7.21-3.1.el9 docker-ce-stable 43 M
9
docker-ce x86_64 3:27.2.0-1.el9 docker-ce-stable 27 M
10
docker-ce-cli x86_64 1:27.2.0-1.el9 docker-ce-stable 7.9 M
11
Installing dependencies:
12
container-selinux noarch 3:2.229.0-1.el9_3 appstream 52 k
13
fuse-common x86_64 3.10.2-8.el9 baseos 7.3 k
14
fuse-overlayfs x86_64 1.13-1.el9 appstream 66 k
15
fuse3 x86_64 3.10.2-8.el9 appstream 53 k
16
fuse3-libs x86_64 3.10.2-8.el9 appstream 90 k
17
libslirp x86_64 4.4.0-7.el9 appstream 68 k
18
slirp4netns x86_64 1.2.3-1.el9 appstream 46 k
19
Installing weak dependencies:
20
docker-buildx-plugin x86_64 0.16.2-1.el9 docker-ce-stable 14 M
21
docker-ce-rootless-extras x86_64 27.2.0-1.el9 docker-ce-stable 4.0 M
22
docker-compose-plugin x86_64 2.29.2-1.el9 docker-ce-stable 13 M
23
24
Transaction Summary
25
==================================================================================================================
26
Install 13 Packages
27
28
Total download size: 108 M
29
Installed size: 423 M
30
Downloading Packages:
31
(1/13): container-selinux-2.229.0-1.el9_3.noarch.rpm 395 kB/s | 52 kB 00:00
32
(2/13): fuse3-3.10.2-8.el9.x86_64.rpm 370 kB/s | 53 kB 00:00
33
(3/13): fuse-overlayfs-1.13-1.el9.x86_64.rpm 432 kB/s | 66 kB 00:00
34
(4/13): slirp4netns-1.2.3-1.el9.x86_64.rpm 810 kB/s | 46 kB 00:00
35
(5/13): fuse3-libs-3.10.2-8.el9.x86_64.rpm 1.0 MB/s | 90 kB 00:00
36
(6/13): libslirp-4.4.0-7.el9.x86_64.rpm 748 kB/s | 68 kB 00:00
37
(7/13): fuse-common-3.10.2-8.el9.x86_64.rpm 60 kB/s | 7.3 kB 00:00
38
(8/13): docker-buildx-plugin-0.16.2-1.el9.x86_64.rpm 16 MB/s | 14 MB 00:00
39
(9/13): docker-ce-cli-27.2.0-1.el9.x86_64.rpm 8.3 MB/s | 7.9 MB 00:00
40
(10/13): docker-ce-27.2.0-1.el9.x86_64.rpm 12 MB/s | 27 MB 00:02
41
(11/13): docker-ce-rootless-extras-27.2.0-1.el9.x86_64.rpm 4.2 MB/s | 4.0 MB 00:00
42
(12/13): docker-compose-plugin-2.29.2-1.el9.x86_64.rpm 14 MB/s | 13 MB 00:00
43
(13/13): containerd.io-1.7.21-3.1.el9.x86_64.rpm 8.9 MB/s | 43 MB 00:04
44
------------------------------------------------------------------------------------------------------------------
45
Total 16 MB/s | 108 MB 00:06
46
Docker CE Stable - x86_64 15 kB/s | 1.6 kB 00:00
47
Importing GPG key 0x621E9F35:
48
Userid : "Docker Release (CE rpm) <docker@docker.com>"
49
Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
50
From : https://download.docker.com/linux/centos/gpg
51
Key imported successfully
52
Running transaction check
53
Transaction check succeeded.
54
Running transaction test
55
Transaction test succeeded.
56
Running transaction
57
Preparing : 1/1
58
Installing : docker-compose-plugin-2.29.2-1.el9.x86_64 1/13
59
Running scriptlet: docker-compose-plugin-2.29.2-1.el9.x86_64 1/13
60
Installing : fuse3-libs-3.10.2-8.el9.x86_64 2/13
61
Running scriptlet: container-selinux-3:2.229.0-1.el9_3.noarch 3/13
62
Installing : container-selinux-3:2.229.0-1.el9_3.noarch 3/13
63
Running scriptlet: container-selinux-3:2.229.0-1.el9_3.noarch 3/13
64
Installing : containerd.io-1.7.21-3.1.el9.x86_64 4/13
65
Running scriptlet: containerd.io-1.7.21-3.1.el9.x86_64 4/13
66
Installing : docker-buildx-plugin-0.16.2-1.el9.x86_64 5/13
67
Running scriptlet: docker-buildx-plugin-0.16.2-1.el9.x86_64 5/13
68
Installing : docker-ce-cli-1:27.2.0-1.el9.x86_64 6/13
69
Running scriptlet: docker-ce-cli-1:27.2.0-1.el9.x86_64 6/13
70
Installing : fuse-common-3.10.2-8.el9.x86_64 7/13
71
Installing : fuse3-3.10.2-8.el9.x86_64 8/13
72
Installing : fuse-overlayfs-1.13-1.el9.x86_64 9/13
73
Running scriptlet: fuse-overlayfs-1.13-1.el9.x86_64 9/13
74
Installing : libslirp-4.4.0-7.el9.x86_64 10/13
75
Installing : slirp4netns-1.2.3-1.el9.x86_64 11/13
76
Installing : docker-ce-rootless-extras-27.2.0-1.el9.x86_64 12/13
77
Running scriptlet: docker-ce-rootless-extras-27.2.0-1.el9.x86_64 12/13
78
Installing : docker-ce-3:27.2.0-1.el9.x86_64 13/13
79
Running scriptlet: docker-ce-3:27.2.0-1.el9.x86_64 13/13
80
Running scriptlet: container-selinux-3:2.229.0-1.el9_3.noarch 13/13
81
Running scriptlet: docker-ce-3:27.2.0-1.el9.x86_64 13/13
82
Verifying : container-selinux-3:2.229.0-1.el9_3.noarch 1/13
83
Verifying : fuse-overlayfs-1.13-1.el9.x86_64 2/13
84
Verifying : fuse3-3.10.2-8.el9.x86_64 3/13
85
Verifying : fuse3-libs-3.10.2-8.el9.x86_64 4/13
86
Verifying : libslirp-4.4.0-7.el9.x86_64 5/13
87
Verifying : slirp4netns-1.2.3-1.el9.x86_64 6/13
88
Verifying : fuse-common-3.10.2-8.el9.x86_64 7/13
89
Verifying : containerd.io-1.7.21-3.1.el9.x86_64 8/13
90
Verifying : docker-buildx-plugin-0.16.2-1.el9.x86_64 9/13
91
Verifying : docker-ce-3:27.2.0-1.el9.x86_64 10/13
92
Verifying : docker-ce-cli-1:27.2.0-1.el9.x86_64 11/13
93
Verifying : docker-ce-rootless-extras-27.2.0-1.el9.x86_64 12/13
94
Verifying : docker-compose-plugin-2.29.2-1.el9.x86_64 13/13
95
96
Installed:
97
container-selinux-3:2.229.0-1.el9_3.noarch containerd.io-1.7.21-3.1.el9.x86_64
98
docker-buildx-plugin-0.16.2-1.el9.x86_64 docker-ce-3:27.2.0-1.el9.x86_64
99
docker-ce-cli-1:27.2.0-1.el9.x86_64 docker-ce-rootless-extras-27.2.0-1.el9.x86_64
100
docker-compose-plugin-2.29.2-1.el9.x86_64 fuse-common-3.10.2-8.el9.x86_64
101
fuse-overlayfs-1.13-1.el9.x86_64 fuse3-3.10.2-8.el9.x86_64
102
fuse3-libs-3.10.2-8.el9.x86_64 libslirp-4.4.0-7.el9.x86_64
103
slirp4netns-1.2.3-1.el9.x86_64
104
105
Complete!
106
[root@my-labs ~]#
107
Using username "root".
108
Last login: Sun Sep 8 14:55:36 2024 from 10.252.239.71
109
[root@my-labs ~]#
Check versi
Shell
1
4
1
[root@my-labs ~]# docker --version
2
Docker version 27.2.0, build 3ab4256
3
[root@my-labs ~]#
4
Menjalankan aplikasi docker
Shell
1
4
1
[root@my-labs ~]# sudo systemctl start docker
2
[root@my-labs ~]# sudo systemctl enable docker
3
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
4
[root@my-labs ~]#