Cannot start docker in Cloud9 IDE

I want Docker to work in Cloud9 IDE, but I have permission problems. Is there any way to resolve this?

$ sudo apt-get install docker Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: docker 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed. Need to get 12.2 kB of archives. After this operation, 65.5 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe docker amd64 1.5-1 [12.2 kB] Fetched 12.2 kB in 0s (30.5 kB/s) Selecting previously unselected package docker. (Reading database ... 123844 files and directories currently installed.) Preparing to unpack .../docker_1.5-1_amd64.deb ... Unpacking docker (1.5-1) ... Processing triggers for menu (2.1.46ubuntu1) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up cgroup-lite (1.9) ... invoke-rc.d: unknown initscript, /etc/init.d/cgroup-lite not found. dpkg: error processing package cgroup-lite (--configure): subprocess installed post-installation script returned error exit status 100 Setting up docker (1.5-1) ... Processing triggers for menu (2.1.46ubuntu1) ... Errors were encountered while processing: cgroup-lite E: Sub-process /usr/bin/dpkg returned an error code (1) $ sudo docker login Username: <> Password: <> Email: <> 2015/01/01 05:11:28 Cannot connect to the Docker daemon. Is 'docker -d' running on this host? $ sudo docker -d 2015/01/01 05:12:06 docker daemon: 1.0.1 990021a; execdriver: native; graphdriver: [0c39ae0d] +job serveapi(unix:///var/run/docker.sock) [0c39ae0d] +job initserver() [0c39ae0d.initserver()] Creating server 2015/01/01 05:12:06 Listening for HTTP on unix (/var/run/docker.sock) [0c39ae0d] +job init_networkdriver() [0c39ae0d.init_networkdriver()] creating new bridge for docker0 operation not permitted [0c39ae0d] -job init_networkdriver() = ERR (1) operation not permitted [0c39ae0d] -job initserver() = ERR (1) 2015/01/01 05:12:06 operation not permitted $ sudo service docker start docker: unrecognized service 

Lorem ipsum stackoverflow is annoying, forcing me to write more when I don't need to.

+12
docker cloud9-ide
source share
5 answers

I am suspicious of the apt-get install docker , as this is some other docker. You can try docker.io or lxc-docker according to http://docs.docker.com/installation/ubuntulinux/

+3
source share

Update . The answer below applies to c9.io and not to AWS Cloud9. AWS Cloud9 allows you to run Docker, as usual, with any support you use for your environment, be it EC2 or another virtual machine vendor.


Installing Docker on a Cloud9 workspace will not work because C9 workspaces work on Docker. Running Docker inside Docker would require special permissions and is therefore not recommended for those who know better for security reasons.

In doing so, you can use Docker from the SSH workspace , which allows you to connect Cloud9 to your own server. Since this workspace does not work in Docker (on Cloud9 servers), you can do whatever you want with it (including running Docker).

+13
source share

Cloud9 IDE (c9.io) does not support Docker, because the environment itself uses Docker. They donโ€™t want users to get too close to the Docker root level environment. Here is their information about Docker and other software that they donโ€™t support: Cloud9 Software, they donโ€™t support the list . I managed to install Docker on c9.io, but it threw errors when trying to use the method of installing a stable Docker repository; that brought me here.

It is interesting to note that the cloud-based version of AWS Hosted allows deeper use of Docker. Unfortunately, this is a separate cost and user interface through AWS ... maybe I can switch everything together? Here's information about AWS Cloud9 supporting Docker and a link to the AWS landing page for cloud9 .

+3
source share

Cloud9 areas work in Docker containers. They cannot have docker containers inside their docker containers because they must be privileged, which is a security risk.

More details here: https://community.c9.io/t/workspace-from-dockerfile-snapshots/34

+1
source share

Cloud9 environments come preloaded with docker. Check: docker --version. And see this sample for more information: https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-docker.html

0
source share

All Articles