Update Docker and Docker Compose Dependencies #12701
Replies: 3 comments 1 reply
-
I have the same issue |
Beta Was this translation helpful? Give feedback.
-
I have a non-solution, rename your networks in the lexicographical order you want them to appear within a container. I was chasing this problem down a couple months ago. Found the following [now deleted] quote here:
This post was what led me to it, a bit old but renaming solved it for me. |
Beta Was this translation helpful? Give feedback.
-
This is still very annoying... As the rule is:
without When will the update include the necessary version? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe
With the current STS release of Portainer, it is not possible to set the gateway priority for containers defined in templates. In my setup, I have a network where only one container (a reverse proxy) can access the others on the network, while all other connections are blocked. Some containers attempt to use that network and container's host names map to their IP address on that network.
Describe the solution you'd like
Docker Compose release 2.33.1 implements gw_priority which allows setting the default gateway a container uses to reach the internet and other containers. Portainer STS appears to use Docker v27.5.1 and Docker Compose v2.31.0. Updating Docker to at least v28 and Docker Compose to at least v2.33.1 would solve this issue for me.
Describe alternatives you've considered
I have attempted to change the order of the networks in the compose that creates the stack, but the behavior is not consistent. For now, I have updated the Docker and Docker Compose packages on my system and use Docker Compose with the gw_priority setting for the containers that need to be able to access other containers.
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions