diff --git a/Dockerfile b/Dockerfile index 7dea2cd5..934ef54e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,5 +6,6 @@ WORKDIR /pia RUN curl https://www.privateinternetaccess.com/openvpn/openvpn.zip > openvpn.zip && unzip openvpn.zip && rm openvpn.zip RUN apk del curl unzip COPY script.sh ./ +RUN chmod +x script.sh ENV REGION="Romania" ENTRYPOINT ["/pia/script.sh"] \ No newline at end of file diff --git a/README.md b/README.md index a1d0ac54..886afdc5 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,6 @@ The PIA configuration files are downloaded from [the PIA website](https://www.pr ``` If the displayed IP address appears and is different that your host IP address, your PIA OpenVPN client works ! 5. Run the container as a daemon in the background with (and change the `/yourhostpath/auth.conf`): - ```bash sudo docker run -d --restart=always --name=pia --cap-add=NET_ADMIN --device=/dev/net/tun --dns 209.222.18.222 --dns 209.222.18.218 -e 'REGION=Romania' -v '/yourhostpath/auth.conf:/pia/auth.conf' qmcgaw/private-internet-access ```