Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose network ipam config values are not allowed #4474

Closed
minmay opened this issue Feb 13, 2017 · 7 comments
Closed

docker-compose network ipam config values are not allowed #4474

minmay opened this issue Feb 13, 2017 · 7 comments

Comments

@minmay
Copy link

minmay commented Feb 13, 2017

It seems as though either the documentation is wrong, or there is a problem with reading the networks ipam config properties.

Docker Version 1.13.1-beta42 (15350)
Channel: beta
2ffb2b4915

version: '3'
...
networks:
  test:
    driver: bridge
    ipam:
      config:
        - subnet: 172.28.0.0/16
          ip_range: 172.28.0.0/24
          gateway: 172.28.0.255
          aux_addreses:
            db: 172.28.0.1
            ui: 172.28.0.5
$docker-compose up
The Compose file './docker-compose.yml' is invalid because:
networks.test.ipam.config value Additional properties are not allowed ('aux_addreses', 'ip_range', 'gateway' were unexpected)
@shin-
Copy link

shin- commented Feb 13, 2017

Please see #4366

@minmay
Copy link
Author

minmay commented Feb 13, 2017

Yes, #4366 will probably have the same route cause. However, that ticket fails to state that aux_addresses, and ip_range are invalid values. Is the documentation wrong? Or is the code wrong? Because when I view the docker-compose file reference, it lists those options.

@shin-
Copy link

shin- commented Feb 13, 2017

It's a documentation issue. I just submitted docker/docs#1636 which should help.

@minmay
Copy link
Author

minmay commented Feb 13, 2017

alright, thank you!

@shin-
Copy link

shin- commented Feb 14, 2017

Thank you for your report. Docs have now been updated, so I'll close the ticket.

@shin- shin- closed this as completed Feb 14, 2017
@blop
Copy link

blop commented May 29, 2017

@jamallmahmoudi
Copy link

Test with this simple syntax.
networks:
entry-net:
driver: overlay
external:
name: entry_entry-net

agent_network:
driver: overlay
attachable: true
ipam:
config:
- subnet: 172.21.0.0/16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants