Docker-compose problem?

In the docker run, we generally use the –add-host = parameter with the external host to establish a connection, then use the docker-compose, I docker-compose.yml how to define the document? 2015-07-16 add comment share it

  • Weibo
  • Micro letter

Did not find the relevant results



    We agreed from:

    This is the official description given:
    Add hostname mappings. Use the same values ​​as the docker client –add-host parameter.

    – "somehost:"
    – "otherhost:"
    An entry with the ip address and hostname will be created in / etc / hosts inside containers for this service, eg: somehost otherhost

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