First of all thanks for all the instructions. They helped me a lot.
I followed all the instructions from installing nextcloud etc. In general everything runs like a charm until it comes to the SSL connection. That's why I carried out your other tutorial 'Securely Login to Nextcloud Remotely on Openmediavault'. Now I face a problem. After generating the network, that worked fine, I tried to put the extra argues into the containers: --cap-add=NET_ADMIN --network my-net and --network my-net.
When I confirmed this addings it comes to an error in nextcloud container as well as letsencrypt container. Any idea what runs wrong?
This is the error:
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=bridge -p 0.0.0.0:91:443/tcp -p 0.0.0.0:90:80/tcp -e PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -e PS1="$(whoami)@$(hostname):$(pwd)\$ " -e HOME="/root" -e TERM="xterm" -e DHLEVEL="2048" -e ONLY_SUBDOMAINS="false" -e AWS_CONFIG_FILE="/config/dns-conf/route53.ini" -e S6_BEHAVIOUR_IF_STAGE2_FAILS="2" -e PUID="1000" -e PGID="100" -e TZ="Europe/Berlin" -e EMAIL="schoepfner@yahoo.de" -e URL="duckdns.org,hopto.org" -e SUBDOMAINS="lallkopf" -e VALIDATION="http" -e ONLY_SUBDOMAINS="true" -v "/sharedfolders/AppData/Letsencrypt":"/config":rw --name="letsencrypt" --label omv_docker_extra_args="--cap-add=NET_ADMIN --network my-net" --cap-add=NET_ADMIN --network my-net "linuxserver/letsencrypt: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'.
Fehler #0:
OMV\ExecException: 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=bridge -p 0.0.0.0:91:443/tcp -p 0.0.0.0:90:80/tcp -e PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -e PS1="$(whoami)@$(hostname):$(pwd)\$ " -e HOME="/root" -e TERM="xterm" -e DHLEVEL="2048" -e ONLY_SUBDOMAINS="false" -e AWS_CONFIG_FILE="/config/dns-conf/route53.ini" -e S6_BEHAVIOUR_IF_STAGE2_FAILS="2" -e PUID="1000" -e PGID="100" -e TZ="Europe/Berlin" -e EMAIL="schoepfner@yahoo.de" -e URL="duckdns.org,hopto.org" -e SUBDOMAINS="lallkopf" -e VALIDATION="http" -e ONLY_SUBDOMAINS="true" -v "/sharedfolders/AppData/Letsencrypt":"/config":rw --name="letsencrypt" --label omv_docker_extra_args="--cap-add=NET_ADMIN --network my-net" --cap-add=NET_ADMIN --network my-net "linuxserver/letsencrypt: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'. in /usr/share/php/openmediavault/system/process.inc:182
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/docker.inc(597): OMV\System\Process->execute()
#1 [internal function]: OMVRpcServiceDocker->runContainer(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('runContainer', Array, Array)
#4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Docker', 'runContainer', Array, Array, 1)
#5 {main}