How do I specify a fixed IP or domain name when starting a container?

How do I specify a fixed IP or domain name when starting a container? 2015-04-10 add comment share it

  • Weibo
  • QZONE
  • Micro letter

Did not find the relevant results

    Invited:

    William – cSphere CEO

    Agree from: Misul , tsing



    Use Docker to support the network, either use the host network mode, or use the default port mapping.

    If you do not want to use the above model, then you can consider the docker daemon start designated bridge, and configure the ip on the bridge, eth0 will also be placed in the bridge. When running the container, the network uses none, manual configuration. Specific can look at the docker document
    Https://docs.docker.com/articles/networking/ About Customizing Network Part Customizing docker0

    Csphere in the subsequent version will be built-in network management functions, simplify the complex configuration management work.

    Heads up! This alert needs your attention, but it's not super important.