June 7, 20179 yr Should this work if you have an additional VLAN tagged? I see Br0 and Br0.10 in a ifconfig, have re-started docker services thru the GUI and I don't get the custom option. Edited June 7, 20179 yr by smdion
June 7, 20179 yr 2 hours ago, smdion said: Should this work if you have an additional VLAN tagged? I see Br0 and Br0.10 in a ifconfig, have re-started docker services thru the GUI and I don't get the custom option. When br0 and br0.10 both have an IP address assigned, they should appear in the list of custom networks for Docker.
June 7, 20179 yr In your third screenshot, I believe the pool needs to be in CIDR format, not a range of ips Sent from my ONEPLUS A3000 using Tapatalk
June 7, 20179 yr 4 minutes ago, ljm42 said: In your third screenshot, the pool needs to be in CIDR format, not a range of ips Sent from my ONEPLUS A3000 using Tapatalk Very sharp observation Correct syntax is: 10.10.0.192/26 The above reserves 10.10.0.192 to 10.10.0.254 Ps. Maybe I should add some syntax checking? Edited June 7, 20179 yr by bonienl
June 7, 20179 yr maybe also adding the keyword CIDR to the interface or help text to give a jump-start on what to Google forSent from my ONEPLUS A3000 using Tapatalk
June 7, 20179 yr 6 minutes ago, bonienl said: Very sharp observation Correct syntax is: 10.10.0.192/26 The above reserves 10.10.0.192 to 10.10.0.254 Ps. Maybe I should add some syntax checking? Ah, that makes sense. Syntax checking is probably a good idea. It makes sense with your example to the right, I just didn't add 1 + 1. Sadly, still no custom option.
June 7, 20179 yr 44 minutes ago, smdion said: Ah, that makes sense. Syntax checking is probably a good idea. It makes sense with your example to the right, I just didn't add 1 + 1. Sadly, still no custom option. What is the output of docker network ls
June 7, 20179 yr Hmm, it didn't create the custom networks. Can you reboot your server and check again?
June 7, 20179 yr docker network create -d macvlan --subnet=10.10.0.0/24 --gateway=10.10.0.1 --aux-address=server=10.10.0.12 --ip-range=10.10.0.192/26 -o parent=br0 br0 Ok, lets try to add manually the custom network...
June 7, 20179 yr root@Redemption:~# docker network create -d macvlan --subnet=10.10.0.0/24 --gateway=10.10.0.1 --aux-address=server=10.10.0.12 --ip-range=10.10.0.192/26 -o parent=br0 br0 Error response from daemon: network dm-b1dc44cc930f is already using parent interface br0 Edited June 7, 20179 yr by smdion
June 7, 20179 yr It can not create the custom network "br0" because internally docker has it already assigned to something else. Did you change your network settings somewhere in the process, e.g. added bridging later or removed bonding? There is no possibility to tell docker to remove the old assignment (at least I couldn't find it). The workaround is to completely delete the docker image and recreate it, plus re-installing the containers
June 7, 20179 yr It happened when I added the VLAN to an existing bridge. I'll see if I can recreate it. Rebuilding isn't that bad.
June 7, 20179 yr 4 minutes ago, smdion said: It happened when I added the VLAN to an existing bridge. I'll see if I can recreate it. Rebuilding isn't that bad. Perhaps you want to test this in two steps. First create br0 only and check if it works Second add the VLAN interface and check again Ps. While developing I did test VLANs and it was working, but this has been some time ago. Edited June 7, 20179 yr by bonienl
June 7, 20179 yr Test 1 (no changes to vlans) recreated docker image added container able to chose br0 br0.10 does not show in dropdown when attempting to add DHCP pool, able to type in information, but hitting apply clears out field Test 2 (deleting and recreating vlans) Delete docker image removed all vlans recreated docker image able to chose br0 added vlan on br0.10 able to chose br0 br0.10 does not show in dropdown when attempting to add DHCP pool, able to type in information, but hitting apply clears out field Edited June 7, 20179 yr by smdion
June 7, 20179 yr After Test 2: docker network ls NETWORK ID NAME DRIVER SCOPE bf9cb0b23d8e br0 macvlan local a6ce9d49136e bridge bridge local dfcda7660adb host host local 95ce9e830426 none null local note (br0.10 exists in unRAID ifconfig) root@Redemption:/mnt/cache/system/docker# ip -4 route show dev br0 default via 10.10.0.1 metric 1 10.10.0.0/24 proto kernel scope link src 10.10.0.12 root@Redemption:/mnt/cache/system/docker# ip -4 route show dev br0.10 default via 10.10.10.1 metric 2 10.10.10.0/24 proto kernel scope link src 10.10.10.191 (IP addy changed on br0.10 due to DHCP scope change on subnet) Edited June 7, 20179 yr by smdion
June 7, 20179 yr Did a quick test and added VLAN 10. Have the same result as you. The network "none" is added. VLAN is not added. Obviously a bug Edited June 7, 20179 yr by bonienl
June 7, 20179 yr 2 minutes ago, smdion said: Thanks for your help @bonienl Happy to find bugs Yeah, back to the drawing boards
June 7, 20179 yr I'm going to try to break mine again tonight, probably not a bad idea to add an error in the GUI when it can't create the network?
June 7, 20179 yr The addition of the VLAN caused a code error in the script which does the creation of the custom networks and is called upon starting the docker service. That part is now corrected. Will add syntax checking too.
Archived
This topic is now archived and is closed to further replies.