This will deploy a fully functional SoftEther VPN server as a docker image.
Available on Docker Hub.
docker pull frosquin/softether
Simplest version:
docker run -d --net host --cap-add NET_ADMIN --name softether frosquin/softether
With external config file:
touch /etc/vpnserver/vpn_server.config
docker run -d -v /etc/vpnserver/vpn_server.config:/usr/local/vpnserver/vpn_server.config --net host --cap-add NET_ADMIN --name softether frosquin/softether
If you want to keep the logs in a data container:
docker volume create --name softether-logs
docker run -d --net host --cap-add NET_ADMIN --name softether -v softether-logs:/var/log/vpnserver frosquin/softether
All together now:
touch /etc/vpnserver/vpn_server.config
docker volume create --name softether-logs
docker run -d -v /etc/vpnserver/vpn_server.config:/usr/local/vpnserver/vpn_server.config -v softether-logs:/var/log/vpnserver --net host --cap-add NET_ADMIN --name softether frosquin/softether