1

OS: Ubuntu 18.04 LTS.

Docker version: 18.09.3.

Service: landscape.canonical.com

When I create a Docker container using sudo docker run hello-world, I got the error as below.

docker: Error response from daemon: 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/vfs/dir/9a16ab705748c4bb269b96db7391b65ba54786f6e722cb32bf5ede32afb67d72\\" at \\"/proc\\" caused \\"permission denied\\"\"": unknown.

Does anyone have an idea of this issue?

Is it possible to use Docker containers in landscape.canonical.com?

The output of sudo docker info:

enter image description here

The output of sudo systemctl status docker.service:

enter image description here

Gil
  • 105
  • 2
  • 5
  • 12
  • Would it fail if you try starting it with `sudo`: `sudo docker run ...`? Also check whether you user has `docker` group. Check these post-install steps: https://docs.docker.com/install/linux/linux-postinstall/ – Igor Nikolaev Mar 13 '19 at 18:30
  • If they’re getting that error, they’ve gotten past needing to run `sudo docker ...`. – David Maze Mar 13 '19 at 18:31
  • I do not want to assume, I want to understand the set up and move forward from there :). Since the error is about `permission denied` there's something about permissions. – Igor Nikolaev Mar 13 '19 at 18:33
  • I tried to use sudo , but still have the same error. – Gil Mar 13 '19 at 18:52
  • Can you add the results after running these commands `sudo systemctl restart docker.service` & `sudo systemctl status docker.service`, and `docker info`? The command `docker run hello-world` is the first step to test docker installation. I am guessing you have installation issues. – bot Mar 13 '19 at 19:26
  • Thank you for replying, I will post images right away – Gil Mar 13 '19 at 19:47
  • Can you post your Dockerfile? – prithajnath Mar 13 '19 at 20:26
  • I don't use Dockerfile to run hello-word in container – Gil Mar 13 '19 at 21:43
  • It looks like the same issue was reported in this link. https://stackoverflow.com/questions/46645910/docker-rootfs-linux-go-permission-denied-when-mounting-proc Do you want to try the accepted solution there? – Seungmoon Rieh Mar 15 '19 at 00:17

1 Answers1

0

I found out that the issue relates to a server image created by landscape.canonical.com. Based on what I know, landscape.canonical.com mainly supports LXD. There is a way to use docker inside LXD environment However, I not sure it is a good way to use Docker.

Gil
  • 105
  • 2
  • 5
  • 12