Hey everyone,
I'm having trouble getting my qBittorrent container to start using Docker Compose. I keep getting this error:
[ERROR] Rolling back changes because of -- Container start errorqbittorrent : Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: open /proc/sys/net/ipv4/conf/all/src_valid_mark=1: no such file or directory: unknown
Here's the relevant part of my Docker Compose file:
yaml
qbittorrent:
image: binhex/arch-qbittorrentvpn:latest
container_name: qbittorrent
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
privileged: true
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- VPN_ENABLED=yes
- VPN_PROV=nordvpn
- VPN_CLIENT=wireguard
# Other standard environment variables and volume mounts...
I'm using NordVPN with WireGuard, and I'm running this through Cosmos (a Docker management UI). The error seems to be related to the `sysctls` setting.
Has anyone else run into this issue? I'm wondering if it's something to do with how Cosmos is handling the Docker Compose file, or if there's a problem with the binhex/arch-qbittorrentvpn image when using WireGuard.
Any ideas on how to fix this or alternative configurations I could try would be super helpful. Thanks in advance!