-
Notifications
You must be signed in to change notification settings - Fork 72
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
[Docker] Add the ability to select multiple custom networks for containers #1812
Comments
I had a similar thought to this and have been toying with it over the last month: So that this worked on the current version of unRaid, I took the approach of using network connect to get around the older version of docker not allowing multiple networks via the run command. I changed docker run to docker create, then multiple network attach (if needed), then docker start. This ensures networks are attached prior to the container starting. This approach is pretty easy to change in the future when docker is updated. Would be interested in your thoughts. |
@mtongnz it looks exactly like what I'd like. I can't patch cleanly on top of my installation because it's missing some folders, though (e.g. |
What unRAID version are you on? |
@mtongnz 6.12.11 |
It should work then. I only modified the existing files. I didn't add/delete anything |
@mtongnz hm, weird. The entire folder is missing for me. I assume there isn't a build script that processes it somehow? |
@mtongnz mystery solved: the folder does not exist in the 6.12 branch (in all tags that it includes), only on master and tags 6.13.0-beta1 and later. |
@mtongnz it's showing on my phone too. The folder does not exist on my server because it's running 6.12.11. The folder only exists in 6.13 (a.k.a. 7) and later, and master, of course. |
Ah... That makes sense. |
No problem. An improvement like this probably won't make it to 6.12 anyway, so I'll update to the next beta of 7 and go from there. |
I'm running 6.12 but with the latest webui version. I'll wait to update unRAID until it's stable as my server is critical. It seems to run fine. If there's issues, a server reboot reverts the UI to the installed version. |
You mean you downloaded it from here and uploaded it to your server? |
I use VSCode with git for versioning, and STFP to sync the files to my unRaid. So in VSCode, I can have multiple branches of code that I switch between and then sync them to unRaid to test. SFTP can also be set to auto-push any changes as you save them. On unRaid, create an SSH key and save it to somewhere accessible from VSCode. Here's the folder structure for the unRaid/webgui project: Here's my sftp.json: |
Disclaimer: this is more of an RFC as I intend to implement this myself and submit a PR.
The problem
Since version 25.0, docker run takes multiple --network arguments, meaning we can now connect containers to multiple (custom) networks. Unraid, however and from what I can see on the master branch here, allows only for a single network to be selected.
The proposal
Turn the network selection field into a checkbox list. Some restrictions must apply, to reflect limitations of the docker run command, such as not being possible to select both bridge/host networks at the same time as custom ones.
Complications
The syntax to expose ports must address the fact ports can now be exposed for different networks.
The text was updated successfully, but these errors were encountered: