Restart unhealthy container
flaming-gif opened this issue · 0 comments
flaming-gif commented
Information
Healthcheck works and is able to mark the container as unhealthy but doesn't restart the container. This causes the container to remain in the unhealth state forever.
Docker container log
alpine-qbittorrent-openvpn_1 | 2021-10-15 09:48:41 RESOLVE: Cannot resolve host address: pl2-ovpn.dns2use.com:80 (Try again)
alpine-qbittorrent-openvpn_1 | 2021-10-15 09:48:41 Could not determine IPv4/IPv6 protocol
alpine-qbittorrent-openvpn_1 | 2021-10-15 09:48:41 SIGUSR1[soft,init_instance] received, process restarting
alpine-qbittorrent-openvpn_1 | 2021-10-15 09:53:41 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
alpine-qbittorrent-openvpn_1 | 2021-10-15 09:53:46 RESOLVE: Cannot resolve host address: pl2-ovpn.dns2use.com:80 (Try again)
alpine-qbittorrent-openvpn_1 | 2021-10-15 09:53:51 RESOLVE: Cannot resolve host address: pl2-ovpn.dns2use.com:80 (Try again)
alpine-qbittorrent-openvpn_1 | 2021-10-15 09:53:51 Could not determine IPv4/IPv6 protocol
docker-compose.yml
file
Started with: docker-compose up
(or start)
version: "3.3"
services:
alpine-qbittorrent-openvpn:
volumes:
- "/mnt/hdd:/downloads"
- "/home/dell/config:/config"
- "/etc/localtime:/etc/localtime:ro"
environment:
- OPENVPN_PROVIDER=IVACY
- OPENVPN_CONFIG=PolandWarsawTCP
- PUID=1000
- PGID=1000
- LAN=192.168.0.0/16
- DNS=1.1.1.1
ports:
- "8080:8080"
- 9117:9117 # jackett
cap_add:
- NET_ADMIN
restart: unless-stopped
image: guillaumedsde/alpine-qbittorrent-openvpn:python
jackett:
image: ghcr.io/linuxserver/jackett
container_name: jackett_alpine_ovpn
environment:
- PUID=1001
- PGID=1001
- TZ=America/New_York
- AUTO_UPDATE=true #optional
network_mode: "service:alpine-qbittorrent-openvpn"
volumes:
- /home/dell/jackett_config:/config
tty: true
restart: unless-stopped
Attempted Fix(es)
Manually running docker-compose start
and stop
works.