Skip to content
Advertisement

Can docker run inside a Linux Container?

Koding is a collaborative programming environment, which creates a virtual machine for multiple user to colaborate on software development. They use Linux Containers to virtualize the machines. I’m not being able to install docker on it:

JavaScript

Can anyone suggest a workaround for installing docker?

Advertisement

Answer

Yes, it is possible. However, you can’t have an aufs partition nested within aufs. You need to mount an other system or use a different storage backend.

You can take a look at the docker’s makefile and hack/dind. You need the privileged mode in order to do so.

The easiest way to try is to do make shell and once in the container, you can start a new docker daemon 🙂

EDIT: I tried Koding and it indeed not possible. You are not privileged within their container so you can’t start a new docker.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement