compose icon indicating copy to clipboard operation
compose copied to clipboard

Support docker --ip option in docker-compose.yml files

Open daniel-smith-kaazing opened this issue 10 years ago • 3 comments

As we work with a lot of OEMs our support and QA test scenarios often involve sets of hosts/VMs/containers that need to know each other's IP on startup. Further it would greatly simplify setup of these scenarios if the IP of each container could be fixed on startup. Please add support for the docker run --ip option in Docker compose.

daniel-smith-kaazing avatar Mar 02 '16 20:03 daniel-smith-kaazing

As I understand it, the IP address is a property of a container's connection to a specific network. So it should probably be a sub-property of the config dictionary under networks:

web:
  build: .
  networks:
    foo:
      ip: 1.2.3.4
    bar:
      ip: 5.6.7.8

aanand avatar Mar 02 '16 23:03 aanand

Looks like a duplicate here: https://github.com/docker/compose/issues/2804 with PR here: https://github.com/docker/compose/pull/3011

mdaue avatar Mar 02 '16 23:03 mdaue

Thanks, they were missing the area/config tag, so I couldn't find it.

going to close this as a duplicate.

dnephin avatar Mar 03 '16 00:03 dnephin