无法在 Cloud9 IDE 上运行 docker
Can't get docker running on Cloud9 IDE
我想让 Docker 在 Cloud9 IDE 上运行,但遇到权限问题。有什么办法可以解决这个问题吗?
$ 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 Whosebug 你很烦人,在没有必要的时候强迫我写更多。
我对 apt-get install docker
行表示怀疑,因为这是其他 docker 行。您可能想根据 http://docs.docker.com/installation/ubuntulinux/
尝试 docker.io
或 lxc-docker
更新: 下面的答案适用于 c9.io,不适用于 AWS Cloud9。 AWS Cloud9 允许您 运行 docker 就像您通常对环境使用的任何支持一样,无论是 EC2 还是其他 VM 提供商。
在 Cloud9 工作区内安装 Docker 将不起作用,因为 C9 工作区 运行 在 Docker 上。 运行 Docker inside Docker 需要特殊权限,因此,出于安全原因,advised against by those who know best。
也就是说,您可以使用 SSH workspace 中的 Docker,这样您就可以将 Cloud9 连接到您自己的服务器。由于该工作区不在 Docker 中 运行(在 Cloud9 的服务器上),您可以用它做任何您想做的事情(包括 运行 Docker)。
Cloud9 工作区 运行 在 Docker 个容器中。他们不能在自己的 docker 容器中放置 docker 容器,因为它们需要特权,这是一种安全风险。
此处有更多详细信息:https://community.c9.io/t/workspace-from-dockerfile-snapshots/34
Cloud9 IDE (c9.io) 不支持 Docker,因为环境本身正在使用 Docker。他们不希望用户离根 Docker 级环境太近。这是他们关于 Docker 和他们不支持的其他软件的信息:Cloud9 Software they do not support list。我能够在 c9.io 上安装 Docker,但是在尝试使用 Docker 稳定回购安装方法时出现错误;这让我来到这里。
有趣的是,cloud 9 的 AWS 托管版本确实允许更深入地使用 Docker。不幸的是,这是一个单独的成本和通过 AWS 向用户提供的界面……也许我会一起切换?这是关于 AWS Cloud9 supporting Docker and a link to AWS landing page for cloud9.
的信息
Cloud9 环境预装了 docker。检查方式:docker --version。并查看此示例以获取更多信息:https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-docker.html
我想让 Docker 在 Cloud9 IDE 上运行,但遇到权限问题。有什么办法可以解决这个问题吗?
$ 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 Whosebug 你很烦人,在没有必要的时候强迫我写更多。
我对 apt-get install docker
行表示怀疑,因为这是其他 docker 行。您可能想根据 http://docs.docker.com/installation/ubuntulinux/
docker.io
或 lxc-docker
更新: 下面的答案适用于 c9.io,不适用于 AWS Cloud9。 AWS Cloud9 允许您 运行 docker 就像您通常对环境使用的任何支持一样,无论是 EC2 还是其他 VM 提供商。
在 Cloud9 工作区内安装 Docker 将不起作用,因为 C9 工作区 运行 在 Docker 上。 运行 Docker inside Docker 需要特殊权限,因此,出于安全原因,advised against by those who know best。
也就是说,您可以使用 SSH workspace 中的 Docker,这样您就可以将 Cloud9 连接到您自己的服务器。由于该工作区不在 Docker 中 运行(在 Cloud9 的服务器上),您可以用它做任何您想做的事情(包括 运行 Docker)。
Cloud9 工作区 运行 在 Docker 个容器中。他们不能在自己的 docker 容器中放置 docker 容器,因为它们需要特权,这是一种安全风险。
此处有更多详细信息:https://community.c9.io/t/workspace-from-dockerfile-snapshots/34
Cloud9 IDE (c9.io) 不支持 Docker,因为环境本身正在使用 Docker。他们不希望用户离根 Docker 级环境太近。这是他们关于 Docker 和他们不支持的其他软件的信息:Cloud9 Software they do not support list。我能够在 c9.io 上安装 Docker,但是在尝试使用 Docker 稳定回购安装方法时出现错误;这让我来到这里。
有趣的是,cloud 9 的 AWS 托管版本确实允许更深入地使用 Docker。不幸的是,这是一个单独的成本和通过 AWS 向用户提供的界面……也许我会一起切换?这是关于 AWS Cloud9 supporting Docker and a link to AWS landing page for cloud9.
的信息Cloud9 环境预装了 docker。检查方式:docker --version。并查看此示例以获取更多信息:https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-docker.html