由于构建时使用多个docker image作为辅助,所以想到了在container中运行多个container帮助构建,完成后删除,保证构建的镜像大小。
但是在container中使用docker经常失败,不知道是不是实现上就不允许?
阿神2017-04-24 09:12:15
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.
迷茫2017-04-24 09:12:15
If you want to use multiple docker images, why do they have to be in one container? Used docker, but anti-docker thinking.
巴扎黑2017-04-24 09:12:15
I just saw an article about how to create a small-capacity image in this way
/a/1190000000628247?name=docker&description=&isPrivate=1
黄舟2017-04-24 09:12:15
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
ringa_lee2017-04-24 09:12:15
Of course it is possible, but not in all situations. You need to configure permissions and other aspects