Can’t install docker on fedora 42 after following the tutorial on the docs
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
[sudo] password for deniz:
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
containerd.io x86_64 2.1.4-1.fc42 docker-ce-test 115.6 MiB
docker-buildx-plugin x86_64 0.29.1-1.fc42 docker-ce-test 74.7 MiB
docker-ce x86_64 3:29.0.0~rc.1-1.fc42 docker-ce-test 87.4 MiB
docker-ce-cli x86_64 1:29.0.0~rc.1-1.fc42 docker-ce-test 35.6 MiB
docker-compose-plugin x86_64 2.40.1-1.fc42 docker-ce-test 73.1 MiB
Installing weak dependencies:
docker-ce-rootless-extras x86_64 29.0.0~rc.1-1.fc42 docker-ce-test 11.3 MiB
Transaction Summary:
Installing: 6 packages
Total size of inbound packages is 98 MiB. Need to download 0 B.
After this operation, 398 MiB extra will be used (install 398 MiB, remove 0 B).
Is this ok [y/N]: y
[1/6] docker-ce-3:29.0.0~rc.1-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
[2/6] docker-ce-cli-1:29.0.0~rc.1-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
[3/6] containerd.io-0:2.1.4-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
[4/6] docker-buildx-plugin-0:0.29.1-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
[5/6] docker-compose-plugin-0:2.40.1-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
[6/6] docker-ce-rootless-extras-0:29.0.0~rc.1-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s
>>> Already downloaded
--------------------------------------------------------------------------------------------------------------------------------------------
[6/6] Total 100% | 0.0 B/s | 0.0 B | 00m00s
Running transaction
[1/8] Verify package files 100% | 36.0 B/s | 6.0 B | 00m00s
[2/8] Prepare transaction 100% | 58.0 B/s | 6.0 B | 00m00s
[3/8] Installing containerd.io-0:2.1.4-1.fc42.x86_64 100% | 112.9 GiB/s | 115.6 MiB | 00m00s
>>> [RPM] lsetfilecon: (40 /etc/containerd, system_u:object_r:container_config_t:s0) Invalid argument
>>> [RPM] Plugin selinux: hook fsm_file_prepare failed
>>> [RPM] unpacking of archive failed on file /etc/containerd: cpio: (error 0x2)
>>> Unpack error: containerd.io-0:2.1.4-1.fc42.x86_64
[1/8] Installing docker-ce-cli-1:29.0.0~rc.1-1.fc42.x86_64 100% | 810.1 MiB/s | 35.6 MiB | 00m00s
>>> [RPM] containerd.io-2.1.4-1.fc42.x86_64: install failed
>>> [RPM] lsetfilecon: (41 /usr/bin/docker;68f7b253, system_u:object_r:container_runtime_exec_t:s0) Invalid argument
>>> [RPM] Plugin selinux: hook fsm_file_prepare failed
>>> [RPM] unpacking of archive failed on file /usr/bin/docker;68f7b253: cpio: (error 0x2)
>>> Unpack error: docker-ce-cli-1:29.0.0~rc.1-1.fc42.x86_64
[1/8] Installing docker-ce-3:29.0.0~rc.1-1.fc42.x86_64 100% | 0.0 B/s | 87.4 MiB | 00m00s
>>> [RPM] docker-ce-cli-1:29.0.0~rc.1-1.fc42.x86_64: install failed
>>> [RPM] lsetfilecon: (40 /etc/docker, system_u:object_r:container_config_t:s0) Invalid argument
>>> [RPM] Plugin selinux: hook fsm_file_prepare failed
>>> [RPM] unpacking of archive failed on file /etc/docker: cpio: (error 0x2)
>>> Unpack error: docker-ce-3:29.0.0~rc.1-1.fc42.x86_64
[1/8] Installing docker-ce-rootless-extras-0:29.0.0~rc.1-1.fc42.x86_64 100% | 0.0 B/s | 11.3 MiB | 00m00s
>>> [RPM] docker-ce-3:29.0.0~rc.1-1.fc42.x86_64: install failed
>>> [RPM] lsetfilecon: (41 /usr/bin/dockerd-rootless-setuptool.sh;68f7b253, system_u:object_r:container_runtime_exec_t:s0) Invalid argument
>>> [RPM] Plugin selinux: hook fsm_file_prepare failed
>>> [RPM] unpacking of archive failed on file /usr/bin/dockerd-rootless-setuptool.sh;68f7b253: cpio: (error 0x2)
>>> Unpack error: docker-ce-rootless-extras-0:29.0.0~rc.1-1.fc42.x86_64
[1/8] Installing docker-compose-plugin-0:2.40.1-1.fc42.x86_64 100% | 913.3 MiB/s | 73.1 MiB | 00m00s
>>> [RPM] docker-ce-rootless-extras-0:29.0.0~rc.1-1.fc42.x86_64: install failed
>>> [RPM] lsetfilecon: (41 /usr/libexec/docker/cli-plugins/docker-compose;68f7b253, system_u:object_r:container_runtime_exec_t:s0) Invalid a
>>> [RPM] Plugin selinux: hook fsm_file_prepare failed
>>> [RPM] unpacking of archive failed on file /usr/libexec/docker/cli-plugins/docker-compose;68f7b253: cpio: (error 0x2)
>>> Unpack error: docker-compose-plugin-0:2.40.1-1.fc42.x86_64
[1/8] Installing docker-buildx-plugin-0:0.29.1-1.fc42.x86_64 100% | 911.6 MiB/s | 74.7 MiB | 00m00s
>>> [RPM] docker-compose-plugin-0:2.40.1-1.fc42.x86_64: install failed
>>> [RPM] lsetfilecon: (41 /usr/libexec/docker/cli-plugins/docker-buildx;68f7b253, system_u:object_r:container_runtime_exec_t:s0) Invalid ar
>>> [RPM] Plugin selinux: hook fsm_file_prepare failed
>>> [RPM] unpacking of archive failed on file /usr/libexec/docker/cli-plugins/docker-buildx;68f7b253: cpio: (error 0x2)
>>> Unpack error: docker-buildx-plugin-0:0.29.1-1.fc42.x86_64
Transaction failed: Rpm transaction failed.