Replies: 1 comment 1 reply
-
haha, nevermind.... I think I found the issue. I removed the -d flag from this line: --cap-add=NET_ADMIN -d and it stopped restarting. :) Any idea why that would happen? the man says its -d is detach mode, meaning its running in the background, but I'm not sure why that would cause the service to constantly restart. thanks for your time! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hey, thanks for this great docker! It was exactly what I was looking for. I got the docker running and working and everything was A OK. The only trouble is that when I follow your instructions to try to turn transmission-openvpn into a systemd service, it constantly restarts and can not seem to stay running. Any ideas? Here is the .service file
[Unit]
Description=haugene/transmission-openvpn docker container
After=docker.service
Requires=docker.service
[Service]
User=myuser
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill transmission-openvpn
ExecStartPre=-/usr/bin/docker rm transmission-openvpn
ExecStartPre=/usr/bin/docker pull haugene/transmission-openvpn
ExecStart=/usr/bin/docker run
--name transmission-openvpn
--cap-add=NET_ADMIN -d
-v /home/myuser/data/:/data
-v /home/myuser/openvpn-credentials.txt:/config/openvpn-credentials.txt
-e OPENVPN_PROVIDER=EXPRESSVPN
-e OPENVPN_CONFIG=my_expressvpn_canada_-montreal-2_udp,my_expressvpn_canada-montreal_udp,my_expressvpn_canada-toronto-2_udp,my_expressvpn_canada-toronto_udp,my_expressvpn_usa-new_jersey-1_udp,my_expressvpn_usa-new_jersey-2_udp,my_expressvpn_usa-new_jersey-3_udp,my_expressvpn_usa-new_york-2_udp,my_expressvpn_usa-new_york_udp,my_expressvpn_germany-frankfurt-1_udp,my_expressvpn_germany-frankfurt-2_udp,my_expressvpn_germany-frankfurt-3_udp,my_expressvpn_germany-_nuremberg_udpn
-e OPENVPN_USERNAME=None
-e OPENVPN_PASSWORD=None
-e TRANSMISSION_RPC_PASSWORD=*******
-e TRANSMISSION_RPC_ENABLED=true
-e TRANSMISSION_RPC_AUTHENTICATION_REQUIRED=true
-e TRANSMISSION_RPC_USERNAME=******
-e LOCAL_NETWORK=192.168.0.0/24
-e "TRANSMISSION_SCRAPE_PAUSED_TORRENTS_ENABLED=false"
-e LOG_TO_STD=true
--log-driver json-file
--log-opt max-size=10m
-p 9091:9091
--dns 8.8.8.8
--dns 8.8.4.4
haugene/transmission-openvpn
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
Beta Was this translation helpful? Give feedback.
All reactions