Docker Community Forums

Share and learn in the Docker community.

Can not build an image (OCI runtime create failed)


I am trying to make my first steps with docker by following this link
My system is Debian 9, and Docker version is 18.09.01. When I am trying to build an image I got following error:

OCI runtime create failed: container_linux.go:344: starting container process caused "process_linux.go:424: container init caused \"rootfs_linux.go:58: mounting \\\"proc\\\" to rootfs \\\"/var/lib/docker/overlay2/cf3788734c532028687d63371e96044f4cb7b13a3ceab07ad0adc4ee3d7751a7/merged\\\" at \\\"/proc\\\" caused \\\"permission denied\\\"\"": unknown

I have noticed a permission denied warning, but I am running build command with sudo. What can be an issue? How can I start troubleshooting to get image build?

(Jose Barahona) #2

Hi @osergiyuk in my case was a username space issue because i was looking to run docker inside a lxc container, maybe is around that!