Docker 的 container 中可以再安装 Docker 运行吗
黄舟
黄舟 2017-04-24 09:10:15
0
6
741

由于构建时使用多个docker image作为辅助,所以想到了在container中运行多个container帮助构建,完成后删除,保证构建的镜像大小。
但是在container中使用docker经常失败,不知道是不是实现上就不允许?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(6)
阿神

Clear answer: No, no way, impossible!

If you understand the basic principles of docker implementation, you will not ask this question; it is recommended to learn about the Linux kernel, such as namespace and cgroup.

迷茫

If you want to use multiple docker images, why do they have to be in one container? Used docker, but anti-docker thinking.

巴扎黑

I just saw an article about how to create a small-capacity image in this way

/a/1190000000628247?name=docker&description=&isPrivate=1

黄舟

docker-in-docker
This should be what you want, but it is recommended to read its documentation carefully before using it

https://github.com/jpetazzo/dind

左手右手慢动作

Of course it is possible, but not in all situations. You need to configure permissions and other aspects

黄舟

Yes, Eclipse che seems to be like this.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template