-
Notifications
You must be signed in to change notification settings - Fork 227
How to run VpnHood Server on Linux using docker
To install VpnHoodServer by docker, you can run the following command. It installs VpnHoodServer and Updater on your docker.
sudo su -c "bash <( wget -qO- https://github.com/vpnhood/VpnHood.App.Server/releases/latest/download/VpnHoodServer.docker.sh)"You can use the following command to generate an AccessKey if you don't use VpnHood! MANAGER:
docker run -v "/opt/VpnHoodServer/storage:/app/storage" "vpnhood/vpnhoodserver" genTo configure VpnHood, you can put the configuration files in "/opt/VpnHoodServer".
You can run VpnHoodServer as a stand-alone server. However, to take advantage of advanced enterprise features and manage your server through VpnHood! MANAGER, follow these steps:
- Log in to VpnHood! MANAGER
- Go to Servers => Add Server
- Select "Install Manually by configuring appsettings"
- Download AppSetting and copy it to "/opt/VpnHoodServer/storage" of your Docker server
You can install VpnHood Server Docker Image manually from the Docker Hub by the following command, but in this case, you need to
- Understand how to use Docker
- Create a Docker volume for the storage folder or mount it in your OS file system to put the VpnHood Server config there.
VpnHoodServer storage in docker is "/app/storage".
Pulling the image:
docker pull vpnhood/vpnhoodserver:latestCreating the container:
docker run --network host --volume /opt/VpnHoodServer:/app/storage --name MyVpnHoodServer -d vpnhood/vpnhoodserver👉 Note: "host network mode," is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server. So, If you install it using a bridge network, you need to configure the UDP and TCP port mapping. More Info about host NetWorking.