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

Remove unsupported IPAM config entries in v3 #1636

Merged
merged 1 commit into from
Feb 14, 2017

Conversation

shin-
Copy link
Contributor

@shin- shin- commented Feb 13, 2017

Signed-off-by: Joffrey F joffrey@docker.com

Proposed changes

Remove unsupported IPAM config entries in v3 because they are unsupported and will cause Compose to raise an error when used.

Related issues (optional)

docker/compose#4474 , docker/compose#4366

Signed-off-by: Joffrey F <joffrey@docker.com>
@mdlinville mdlinville merged commit 6cbbf69 into docker:master Feb 14, 2017
aaronlehmann pushed a commit to aaronlehmann/docker.github.io that referenced this pull request Feb 14, 2017
Improves 1.1.1 release notes.
* Fixes docker#1565
* Fixes docker#1636
aaronlehmann pushed a commit to aaronlehmann/docker.github.io that referenced this pull request Feb 14, 2017
Improves 1.1.1 release notes.
* Fixes docker#1565
* Fixes docker#1636
@blop
Copy link

blop commented May 29, 2017

So how are we supposed to define the gateway and ip_range using the macvlan driver for example ?
It was working just fine in v2. Is macvlan not supported anymore ?

@mdlinville
Copy link

cc/ @shin-

@shin-
Copy link
Contributor Author

shin- commented May 30, 2017

At the moment, those options are not available for Swarm services, hence their absence from the v3 format. Until then, if you depend on those options, please continue to use v2.

@andronux
Copy link

andronux commented Dec 1, 2017

not sure if I quite understood here.

do you mean that it is not possible to specify a custom subnet in swarm using docker-compose v3?

@intech
Copy link

intech commented Apr 2, 2019

Why this solution was blocked by swarm. Setting up ip_range is required without swarm.
This change has limited the ability to automatically configure routing for multi-host networks where swarm is not used. 😠
So far, I had to use version 2. I believe that you should reconsider this question regarding the ip_range parameter. 🤔
I will give you an example of network configuration:

# datacenter1 / server1
subnet: 10.1.1.0/8
ip_range: 10.1.1.1/24 # allow for container
# datacenter2 / server123
subnet: 10.2.123.0/8
ip_range: 10.2.123.1/24 # allow for container

and I cannot specify a subnet as 10.1.1.1/24 otherwise the containers on the multi-hosts will not see each other without additional settings. ❗

@coLATin
Copy link

coLATin commented Mar 28, 2020

"gateway" and "ip_range" shoule be useful lots of users

@cbittencourt
Copy link

The removal of this feature in v3 is very unfortunate. Are there any workarounds for this when also depending on v3.x for other features such as https://docs.docker.com/compose/compose-file/#target?

@haneef95
Copy link

haneef95 commented Nov 3, 2021

Nice one @shin-

Thanks, that worked!

@intech
Copy link

intech commented Nov 4, 2021

Awesome SLA 4 years 🎉 😄

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

Successfully merging this pull request may close these issues.

8 participants