q102: Docker install error on Rocky 8.10

Symptom

On Rocky 8.10, when you run the Docker install command from the guide, if you see a big block of errors like this (mentioning a conflict between podman-related packages and runc):

[lxkt@localhost ~]$ sudo dnf install -y docker-ce docker-ce-cli containerd.io
Last metadata expiration check: 0:00:32 ago on Thu 02 Jul 2026 02:28:26 PM CST.
Error:
 Problem 1: problem with installed package podman-4:4.9.4-1.module+el8.10.0+1815+5fe7415e.x86_64
  - package podman-4:4.9.4-1.module+el8.10.0+1815+5fe7415e.x86_64 from @System requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-1.module+el8.10.0+1815+5fe7415e.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-1.module+el8.10.0+1825+623b0c20.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-12.module+el8.10.0+1843+6892ab28.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-13.module+el8.10.0+1871+e6fa1069.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-13.module+el8.10.0+1874+ce489889.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-15.module+el8.10.0+1880+8e896d1b.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-18.module+el8.10.0+1896+b18fa106.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-19.module+el8.10.0+1933+1fc610b1.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-20.module+el8.10.0+1948+4b5cd4a9.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-20.module+el8.10.0+2001+6a33db9f.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-22.module+el8.10.0+2006+320bb1e5.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-23.module+el8.10.0+2064+309a12a4.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-25.module+el8.10.0+40047+0c0a73f4.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-26.module+el8.10.0+40066+670062d8.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-27.module+el8.10.0+40068+51711525.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-28.module+el8.10.0+40087+cfe9c127.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-3.module+el8.10.0+1829+9bb2696f.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed
  - package podman-4:4.9.4-30.module+el8.10.0+40133+32c21f88.x86_64 from appstream requires runc >= 1.0.0-57, but none of the providers can be installed

(You don't need to read this whole block carefully — as long as you see the keywords podman and runc in the error, this is very likely the issue described here.)

Also note that in the example above, the command prompt is [lxkt@localhost ~]$ — the lxkt here is just the login username on this particular example machine, not any kind of special command. The username in the prompt on your own machine is likely different, and that's completely normal — it has nothing to do with the error itself.

Cause

Podman (which depends on runc) is already installed on the system, and it conflicts with the runc bundled with the Docker package you're trying to install.

Fix

Run the following three commands in order (we recommend copying and pasting the whole block):

# Remove Podman and its dependencies
sudo dnf remove -y podman podman-* buildah skopeo
 
# Clean up any leftover runc conflicts
sudo dnf remove -y runc
 
# Reinstall Docker
sudo dnf install -y docker-ce docker-ce-cli containerd.io

After running the third command, if the earlier error no longer appears, the issue is resolved — you can go back to the installation guide and continue with the next step (starting the Docker service).