Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Error running docker inside an lxd container, works fine outside of container #3166
Distributor ID: Ubuntu
Fresh server, only ubuntu OS , lxd, and docker installed. I followed the installation instructions for docker from their docs page for the CE version: docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository
Running the "Hello-World" app inside the container as root user (sudo user same thing) gives the following error:
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:252: getting pipe fds for pid 2391 caused "readlink /proc/2391/fd/0: permission denied"".
Note: I am using ZFS storage (with proper packages to enable ZFS on linux) for the LXD container, however I have not made any modifications to the docker installation -- just the defaults it installed with.
@hooramin, wait, are you saying that you are on Ubuntu 14.04 if so what is the Docker version you are using. Afaik, the minimal required version for Docker to work out of the box in LXD is
@brauner I'm on ubuntu 16.04 and my container is ubuntu 14.04
I followed their document instructions and i got error , also i tried to do as lxd docker document
Right, you're running a Docker version that's super old and that will not work inside LXD.
The instructions that said that docker.io from Ubuntu would work inside LXD were for Ubuntu 16.04, not 14.04. You either need Ubuntu's version of Docker at version 1.12 or higher, or the upstream Docker build which should be version 17.06 or higher.