Docker setup on centos9 machine from playground lab

Hello all,

I was trying to setup docker on centos stream9 machine from playgroung everything seems to be fine but when i am trying to run container getting below error—
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting “proc” to rootfs at “/proc”: mount src=proc, dst=/proc, dstFd=/proc/thread-self/fd/9, flags=0xe: no such file or directory: unknow
could you please help to resolve this

This is because the playground environment is itself running inside a container, as can be seen from uname -a - the underlying host is Ubuntu.

I’ve raised a ticket to see if docker-in-docker can be enabled for this playground.

There is however a dedicated docker playground where docker is preinstalled and working

Hi @suraj7

Please try this

sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

sudo dnf remove -y podman-docker
sudo dnf install -y docker-ce-3:27.3.1-1.el9 docker-ce-cli-1:27.3.1-1.el9 containerd.io-1.7.19-3.1.el9 docker-buildx-plugin docker-compose-plugin

sudo systemctl enable --now docker

Then run the docker test image

sudo docker run hello-world