docker / roadmap

Welcome to the Public Roadmap for All Things Docker! We welcome your ideas.
https://github.com/docker/roadmap/projects/1
Creative Commons Zero v1.0 Universal
1.45k stars 244 forks source link

The ability to select the default docker network route and configure network route priority #658

Open Daniel-dev22 opened 2 weeks ago

Daniel-dev22 commented 2 weeks ago

Tell us about your request A clear and concise description of what you want to happen or the change you would like to see

It would be nice to be able to set the default docker route to a docker network name defined in the compose and define the route priority in either a dictionary or list where the order in the yaml is the order docker would use.

Which service(s) is this request for? Let us know which product(s) you want this for?

Docker compose I think and maybe more under the hood I am not sure.

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

There's no way currently to set the default route in docker or to set the priority it uses. Rather the default route and priority is currently selected based on the alphabet of the network name. That makes for a bad user experience and a lot of confusion when using docker networks.

Are you currently working around the issue? A clear and concise description of any alternative solutions or features you've considered or are using today.

My work around is to create networks but append an alphabet letter a-example-network for example so that network is the default network for example and subsequent networks would come after a.

Additional context Add any other context or screenshots about the feature request here.

YuriyTigiev commented 5 days ago

There's no way currently to set the default route in docker or to set the priority it uses. Rather the default route and priority is currently selected based on the alphabet of the network name.

Real ????????????????

Daniel-dev22 commented 5 days ago

There's no way currently to set the default route in docker or to set the priority it uses. Rather the default route and priority is currently selected based on the alphabet of the network name.

Real ????????????????

I'm not sure I understand what you're asking?

YuriyTigiev commented 5 days ago

I read this post and it saved me a lot of time. I had spent several days trying to resolve issues with the default routing in Docker between two networks. The problem was that Docker uses routes based on the network name, rather than the order of the networks that I provided. This approach was not logical. I spent a few days investigating why the correct configuration didn't work. It was really surprising to see the approach chosen by the Docker developers.


From: Daniel @.> Sent: Sunday, May 12, 2024 12:15:55 AM To: docker/roadmap @.> Cc: YuriyTigiev @.>; Comment @.> Subject: Re: [docker/roadmap] The ability to select the default docker network route and configure network route priority (Issue #658)

There's no way currently to set the default route in docker or to set the priority it uses. Rather the default route and priority is currently selected based on the alphabet of the network name.

Real ????????????????

I'm not sure I understand what you're asking?

— Reply to this email directly, view it on GitHubhttps://github.com/docker/roadmap/issues/658#issuecomment-2106009407, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFNSYQSMFPM64CHHIK4CEM3ZBZ37PAVCNFSM6AAAAABG6RRHGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGAYDSNBQG4. You are receiving this because you commented.Message ID: @.***>

Daniel-dev22 commented 5 days ago

I read this post and it saved me a lot of time. I had spent several days trying to resolve issues with the default routing in Docker between two networks. The problem was that Docker uses routes based on the network name, rather than the order of the networks that I provided. This approach was not logical. I spent a few days investigating why the correct configuration didn't work. It was really surprising to see the approach chosen by the Docker developers.


From: Daniel @.> Sent: Sunday, May 12, 2024 12:15:55 AM To: docker/roadmap @.> Cc: YuriyTigiev @.>; Comment @.> Subject: Re: [docker/roadmap] The ability to select the default docker network route and configure network route priority (Issue #658)

There's no way currently to set the default route in docker or to set the priority it uses. Rather the default route and priority is currently selected based on the alphabet of the network name.

Real ????????????????

I'm not sure I understand what you're asking?

— Reply to this email directly, view it on GitHubhttps://github.com/docker/roadmap/issues/658#issuecomment-2106009407, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFNSYQSMFPM64CHHIK4CEM3ZBZ37PAVCNFSM6AAAAABG6RRHGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGAYDSNBQG4. You are receiving this because you commented.Message ID: @.***>

I too spent days troubleshooting an issue until I stumbled upon a really old docker forums post that explained this behavior.