elmerfds / rebuild-dndc

Re-create containers that use another container's network stack (i.e. routing container traffic through a VPN container)
GNU General Public License v3.0
22 stars 9 forks source link

Container set as network 'None' in Unraid Template error #65

Closed kevhardy closed 11 months ago

kevhardy commented 1 year ago

Not sure if this is intended behavior but I'll report anyway incase it isn't. It appears that the docker run command adds --net="none" when you have the Network set as None even if there is a manually set --net command in the extra parameters field. This causes docker to throw an error. Here is a example using gluetunvpn (I removed some parameter info from logs):

/usr/bin/docker run -d --name="app_name" --net="none" (*removed other parameters*) --network=container:gluetunvpn lscr.io/linuxserver/bazarr
/usr/bin/docker: Error response from daemon: Container cannot be connected to network endpoints: container:gluetunvpn, none.

Currently my workaround is either to create a manual docker network or set the network to bridge. This run does appear it would work as long as --net="none" is omitted when a --net command exists in the extra parameters

Unraid Version 6.11.5

elmerfds commented 11 months ago

@kevhardy pull the latest image, @olayonjavier 's fix should sort this out now