Hey all,
Trying to set up LetsEncrypt reverse proxy with Docker, basically following https://www.youtube.com/watch?v=TkjAcp8q0W0 - the issue is, whenever I enter `--network my-net` into extra arguments for the docker container, I get the following error message:
cannot attach both user-defined and non-user-defined network-modes
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; docker run -d --restart=always -v /etc/localtime:/etc/localtime:ro --net=none -e LANGUAGE="en_US.UTF-8" -e TERM="xterm" -e AIRSONIC_HOME="/app/airsonic" -e PGID="100" -e PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -e HOME="/root" -e LANG="C.UTF-8" -e AIRSONIC_SETTINGS="/config" -e PUID="1000" -e TZ="redcated" -v "/home/docker/airsonic":"/config":rw -v "/srv/dev-disk-by-label-Media/Music":"/music":rw -v "/podcasts" -v "/media" -v "/playlists" --name="Airsonic" --label omv_docker_extra_args="--network my-net" --network my-net "linuxserver/airsonic:latest" 2>&1' with exit code '125': docker: conflicting options: cannot attach both user-defined and non-user-defined network-modes. See 'docker run --help'.
I have even tried disabling the network option on the container entirely but it still persists. I have changed and tested different configurations in nginx. Nginx subdomain configurations for the services was setup also, e.g. for Airsonic, but only the default start page showed - probably because the services could not be discovered as the --network command wasn't used. Even though the services show on the same bridge in the networks tab, I do not think this is enough.
Any idea what I'm doing wrong?
Thanks!