docker_container does not support ipv6 port bindings #67607
Replies: 12 comments
-
Hi @Akm0d, any update on this? |
Beta Was this translation helpful? Give feedback.
-
Same tragedy here. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
The problem is apparently not solved yet. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
Any update here? |
Beta Was this translation helpful? Give feedback.
-
I can confirm that IPv6 address does still not work with salt 3007.0. :-( |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Simply use docker-compose as a workaround: docker-compose.yml:
some.sls:
And yes the 3007 version is completely broken shit. |
Beta Was this translation helpful? Give feedback.
-
This issue is about |
Beta Was this translation helpful? Give feedback.
-
Just as a workaround my friend ;) |
Beta Was this translation helpful? Give feedback.
-
I have posted a workaround without having to use an external tool already. Is there anything wrong with my workaround? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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...)
Beta Was this translation helpful? Give feedback.
All reactions