-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
enable_ipv6 not recognised from version 3.0 #4958
Comments
Not a bug. Network configuration in v3 is currently more limited until Swarm mode is able to support more advanced configurations. |
@shin well then it's a documentation bug, no? |
Any question about this, So it's not possible anymore to use IPv6 with Docker-compose > 2.1 (3, 3.1, 3.2) ? Why ? I have a working 2.1 compose with IPv6 setting for each containers who doesn't work anymore on new compose's version. |
I explained this in the comment above: #4958 (comment) Version 3 should be considered a sidegrade of version 2 for the time being (as both will continue to evolve and be maintained for the foreseeable future) |
Ok, so we can hope a new version which support IPv6 like 2.1 in newer releases ? |
Down the line, yes, that is the expectation. |
I understand why 3.x does not provide ipv6 capabilities, but why this ticket has been closed? Does this more depends on docker swarm project? If yes, is there a another ticket to track this issue? |
Up to this date, the problem with version 3 and latest continues, now I have to inform that in version 2.3 the enable_ipv6 is working, but if you want a workaround for the 3.0 and latest versions, here we go, I do not know if there is a security issue with this. You must comment enable_ipv6: true, and let defined all the others parameters as the documentation says, because is working as expected. $ docker network create --driver bridge --ipv6 --subnet fd15:555::/64 --subnet 172.16.238.0/24 containerName-dockerfile_app_net --attachable |
My workaround was editing /etc/docker/daemon.json to contain
reload the docker daemon and edit docker-compose.yml to contain
under the service. |
Three years later, the documentation error persists. Also in [[https://mailcow.github.io/mailcow-dockerized-docs/firststeps-disable_ipv6/]] |
v3 doesn't support IPv6 apparently, see docker/compose#4958.
v3 doesn't support IPv6 apparently, see docker/compose#4958.
This should be in the official documentation! https://docs.docker.com/compose/compose-file/compose-file-v3/#ipv4_address-ipv6_address |
IPv6 instructions on docker/compose#4958, are compatible with Docker Compose 3.x
Just hit this today… we have a test suite that's used for testing, amongst other things, 6LoWPAN devices. 6LowPAN devices run IPv6. Not IPv4. NAT64 is useless when the "cloud side" application needs to make an unsolicited request to a mesh-side device. Below is my work-around to the problem… specifying
|
* Update ipv6 instructions for 3.x Compose files IPv6 instructions on docker/compose#4958, are compatible with Docker Compose 3.x * Update code block to use yaml syntax With @usha-mandya Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com> * Update text about using IPv6 By @usha-mandya Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com> Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
Alternatively, you can |
Is |
it is kind of difficult to develop with a dual stack lite configuration. you can use e.g. a cloudflare dns entry to resolve the problem with daily changing ip addresses but ipv6 is crucial due to the fact that your ipv4 address is not available from the public... also the documentation has to be updated. it uses a global scope ipv6 address instead unique local scope ip address range. global ipv6 address assignment should be resolved with slaac |
I believe with the latest generic compose-file spec (and updated docker-compose) it should be supported again, please note that the latest spec has no |
It is not possible to have the
enable_ipv6
directive in the composer file if version is 3.0 or higher. This is not consistent with the documentation (https://docs.docker.com/compose/compose-file/).To be more precise, here is the docker-compose.yml file I am trying to run:
It runs very well with
docker-compose up
and the ipv6 address is affected to the container.If I change the compose file to version 3.0, 3.1, 3.2 or 3.3, receive the following error:
Is this an error in the documentation or in docker-compose?
For information:
The text was updated successfully, but these errors were encountered: