由于构建时使用多个docker image作为辅助,所以想到了在container中运行多个container帮助构建,完成后删除,保证构建的镜像大小。但是在container中使用docker经常失败,不知道是不是实现上就不允许?
人生最曼妙的风景,竟是内心的淡定与从容!
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.
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.