I want to run linux cli app of Private Internet Access inside my docker container. I run container with systemd-ubuntu base image, because piactl (PIA linux app) requires systemd which is not available in ubuntu docker image by default.
docker run --privileged -d \ --name ubuntu-systemd-container \ --cgroupns=host \ --tmpfs /run \ --tmpfs /run/lock \ -v /sys/fs/cgroup:/sys/fs/cgroup:ro \ jrei/systemd-ubuntu:22.04then once it's running I install piactl withwget https://installers.privateinternetaccess.com/download/pia-linux-arm64-3.5.7-08120.run.
I make the installer executable, run from with non-root user and it installs successfully.
But the problem is once I login and run piactl connect - it doesn't connect, piactl get connectionstate says Connecting indefinitely, it doesn't throw any error. In fact, when I run piactl --debug connect the output looks normal, same as the output on ubuntu virtual machine inside which I use piactl without any problems.
piactl --debug connect[2024-08-23 09:42:57.013][2def][cli.cliclient][src/cliclient.cpp:15][info] CLI connected: 1[2024-08-23 09:42:57.013][2def][common.jsonrpc][src/jsonrpc.cpp:322][info] Sending request QJsonValue(double, 1) to invoke RPC method "connectVPN"[2024-08-23 09:42:57.014][2def][common.jsonrpc][src/jsonrpc.cpp:409][info] Request 1 succeeded[2024-08-23 09:42:57.014][2def][cli.clicommand][src/clicommand.cpp:158][info] Daemon accepted "connectVPN" RPCThanks.