Download (dockerhub): https://hub.docker.com/editions/community/docker-ce-desktop-windows/ Reference procedure site: https://ops.jig-saw.com/tech-cate/docker-for-windows-install
docker pull ubuntu
docker run -it --name ubuntu1 ubuntu bash
apt-get update
apt-get install wget
wget -qnc https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb
apt install -y nordvpn-release_1.0.0_all.deb
I get an error, so
ERROR
E: Unable to locate package nordvpn
It passes after repeating apt install, update and upgrade several times.
apt update
apt upgrade
apt install -y nordvpn
If you can not proceed due to an error, if necessary,
apt --fix-broken install
Also mix and hit.
At this point, the following additional settings are required, so create a temporary image.
Exit from the container.
docker commit ubuntu1 ubuntu-nordvpn
Make nordvpn start when the container is started. Official: How to build a NordVPN Docker image?
Dockerfile
FROM ubuntu-nordvpn
ENTRYPOINT ["/usr/sbin/nordvpnd", "&"]
Execute the following command in the directory where the Dockerfile is located. Finally, add ". (Period)" that refers to the Dockerfile in the current directory.
docker build -t ubuntu-nordvpn-entrypoint .
Start the container with the option to grant permission to use network devices.
docker run -it --cap-add=NET_ADMIN --cap-add=SYS_MODULE --device /dev/net/tun --name ubuntu-nordvpn-entrypoint1 --sysctl net.ipv4.conf.all.rp_filter=2 ubuntu-nordvpn-entrypoint
If the shell doesn't respond, press Ctrl + p Ctrl + q to exit the container. Enter with bash again.
docker exec -it ubuntu-nordvpn_entrypoint1 bash
nordvpn login
# Username :Email address when registering a NordVPN account
# Password :Login password when registering a NordVPN account
nordvpn set protocol tcp
nordvpn set killswitch on #Even if an error occurs, it will be registered on
nordvpn connect Japan
wget -O - http://inet-ip.info/
Recommended Posts