-
-
Notifications
You must be signed in to change notification settings - Fork 400
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
Networks > External Network has no effect #594
Comments
yup same issue here |
thanks @clupss - I had this same issue and your explanation helped (I somehow missed that 'edit' button for each container...) Some of my confusion stems from the docker compose documentation for using pre-existing networks which says that if an external network is defined in the top-level network element , compose will look for it and attach containers to it if it exists (instead of creating a network). Implied by the language and example are: 1) if no other networks are specified in the network top level element, and 2) if no networks are specified in the service top-level element, then 3) the network defined in the network top level element will be treated as the default network, and containers will be attached to it. It might be documented somewhere else but it seems that the following rules apply: 1) unless a network is specified in the service element, the container will join a default network, and 2) the default network will always be a container specific bridge network unless the default is explicitly defined in the network top-level element. Which leads me to the following feature request: 1) a toggle in the network block of the compose editor to designate a network that you've toggled on as the default network (which would adjust the formatting of that network element appropriately), e.g. from:
to:
|
This worked for me. Thank you. |
🛡️ Security Policy
Description
I am trying to replicate the Join Networks feature in Portainer by using the sliders in the External Network section when I deploy or edit a container.
👟 Reproduction steps
👀 Expected behavior
the Containers: {} line should have the info for the containers I selected to join the testnet network, in this case, prowlarr
😓 Actual Behavior
Containers: {} line remained empty.
Dockge Version
1.4.2
💻 Operating System and Arch
Ubuntu 24.04
🌐 Browser
Firerfox 129.0
🐋 Docker Version
Docker 26
🟩 NodeJS Version
No response
📝 Relevant log output
No response
The text was updated successfully, but these errors were encountered: