Run a docker container:
export MY_IP=$(curl -s https://api.ipify.org)
sudo docker run -it --rm --cap-add=NET_ADMIN -p 1194:1194/udp -e HOST_ADDR=$MY_IP --name dockovpn alekslitvinenk/openvpn
or
sudo docker run -it --rm --cap-add=NET_ADMIN -p 1194:1194/udp -e HOST_ADDR=$MY_IP --name dockovpn alekslitvinenk/openvpn -v openvpn_conf:/opt/Dockovpn_data
to persist generated files in volume storage.
Type Ctrl+P
then Ctrl+Q
to turn interactive mode to daemon mode.
Determine its IP address:
sudo docker ps
sudo docker inspect dockovpn | grep IPAddress