-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
version 1.10.0 error on gateway spec #4366
Comments
It is intentional. Swarm mode doesn't support setting the rest of these fields (as of docker 1.12), so they are excluded from the V3 format. If/when that changes we can add them to 3.1 |
Ok Thanks for the answers. Regards |
It was never necessary to define a gateway for most use cases. You only need it if you want to customise the network. In swarm mode the network is more tightly managed by swarmkit, so it isn't possible to control the gateway (yet at least). |
OK
Thanks again !!
Regards
…On Jan 23, 2017 18:36, "Daniel Nephin" ***@***.***> wrote:
It was never *necessary* to define a gateway for most use cases. You only
need it if you want to customise the network. In swarm mode the network is
more tightly managed by swarmkit, so it isn't possible to control the
gateway (yet at least).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4366 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AM-4BkIIlzewAvVxXsh71IgHPKvsypn3ks5rVOUvgaJpZM4LpMvw>
.
|
Was there any discussion on that? I do need to customize the network, because my company uses the 172.16.0.0/16 address range at some segments and Docker will simply clash with that by default, so every single Docker server in the whole company needs a forced network setting. Now while upgrading my dev environment to Docker 1.13 it took me hours to stumble into this Github issue, because the removal of those options was completely undocumented. So please, if I am working on a network which requires a custom docker subnet, how am I supposed to use Docker Compose and Docker Swarm? |
@guhcampos Can you create an issue on docker/docker? Like @dnephin said, this is unsupported by Swarm mode, so there's nothing we can do at our level. |
docker-compose up gives error :
ERROR: The Compose file './yaml-docker4man-nexus-2.0/docker4man-nexus.yml' is invalid because:
networks.backend.ipam.config value Additional properties are not allowed ('gateway' was unexpected)
Is this a bug ?
If I change version from 3 to 2, there is no error.
The text was updated successfully, but these errors were encountered: