Home  >  Q&A  >  body text

docker 可以分配独立IP给容器吗?

docker 可以分配独立IP给容器吗?只能端口映射吗

高洛峰高洛峰2761 days ago778

reply all(3)I'll reply

  • 迷茫

    迷茫2017-04-21 10:58:15

    If it’s a bridge, it’s still mapping, right?

    reply
    0
  • 怪我咯

    怪我咯2017-04-21 10:58:15

    Can bridge network card.
    Reference materials https://docs.docker.com/articles/networking/
    Chinese translation http://www.oschina.net/translate/docker-network-configuration

    However, due to my limited network conditions, I have not tried it

    reply
    0
  • 黄舟

    黄舟2017-04-21 10:58:15

    It can be achieved by specifying ns
    Refer to http://www.xiaomastack.com/2015/02/06/docker-static-ip/

    reply
    0
  • Cancelreply