search

Home  >  Q&A  >  body text

Docker 的 container 中可以再安装 Docker 运行吗

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

黄舟黄舟2771 days ago716

reply all(6)I'll reply

  • 阿神

    阿神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.

    reply
    0
  • 迷茫

    迷茫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.

    reply
    0
  • 巴扎黑

    巴扎黑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

    reply
    0
  • 黄舟

    黄舟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

    reply
    0
  • ringa_lee

    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

    reply
    0
  • 黄舟

    黄舟2017-04-24 09:12:15

    Yes, Eclipse che seems to be like this.

    reply
    0
  • Cancelreply