Open prometheanfire opened 5 years ago
Hi @Akm0d, any update on this?
Same tragedy here.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
The problem is apparently not solved yet.
Thank you for updating this issue. It is no longer marked as stale.
Any update here?
I can confirm that IPv6 address does still not work with salt 3007.0. :-(
It seems the following workaround works:
- skip_translate: port_bindings
- port_bindings:
8080/tcp:
- HostIp: "10.0.0.1"
HostPort: 443
- HostIp: "2001:db8::1"
HostPort: 443
Simply use docker-compose as a workaround:
docker-compose.yml:
networks:
- dual_stack
ports:
- "0.0.0.0:443:443"
- ":::443:443"
some.sls:
create_docker_network:
cmd.run:
- name: 'docker network create --ipv6 --subnet=fdd5:2126:618a::/64 dual_stack'
- unless: 'docker network ls | grep dual_stack'
- require:
- docker_service
And yes the 3007 version is completely broken shit.
This issue is about docker_container.running
, not docker compose.
Just as a workaround my friend ;)
I have posted a workaround without having to use an external tool already. Is there anything wrong with my workaround?
Here's the example to reproduce
You'll get an error like
I've tried the skip_translate option but it didn't help.
https://github.com/docker/docker-py/blob/master/docker/utils/ports.py#L3 is how upstream suports it (crazy regex).
https://github.com/saltstack/salt/blob/develop/salt/utils/docker/translate/container.py#L388 is why it's broken (it does a basic split on ':', which does not work for ipv6...)