Itsdaspecialk/pia-openvpn will not connect to pia

I’m not sure how to contact the author, but I’m trying to use the container specified and it will not connect.

Mon Jan 24 20:46:39 2022 RESOLVE: Cannot resolve host address: us-east.privateinternetaccess.com: Try again

The container is created/started with the following:
docker run -d --cap-add=NET_ADMIN
–name=pia
–restart=always
-e TZ=America/Chicago
–dns 209.222.18.222 --dns 209.222.18.218
-e ‘USERNAME=USERNAMEHERE’
-e ‘PASSWORD=PASSWORD’
itsdaspecialk/pia-openvpn

Anyone know why the container can’t do dns to even connect?

Probably because the nameservers you specified for the container are not available where you run the container.

Okay so I add --dns 8.8.8.8 to it. The container comes up, but it never logs in to pia or starts a tun device.

Is the container broken? I started it using the instructions from:

I just changed the username/passowrd/REGION to match where I would be connecting from.

I nosed around inside the container with “sh”, and there’s an openvpn init.d script. But it wants to be ran with an /sbin/openrc-run at the top of the script, but that file doesn’t exist inside the container.

Hmm… seems I’m getting something different now.
Mon Jan 31 23:08:15 2022 SIGUSR1[soft,tls-error] received, process restarting
Mon Jan 31 23:08:17 2022 UDPv4 link local: [undef]
Mon Jan 31 23:08:17 2022 UDPv4 link remote: [AF_INET]104.16.41.63:1194
Mon Jan 31 23:09:17 2022 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Jan 31 23:09:17 2022 TLS Error: TLS handshake failed
Mon Jan 31 23:09:17 2022 SIGUSR1[soft,tls-error] received, process restarting
Mon Jan 31 23:09:19 2022 UDPv4 link local: [undef]
Mon Jan 31 23:09:19 2022 UDPv4 link remote: [AF_INET]104.16.41.63:1194

This just cycles constantly.