A very simple anyconnect docker-container
docker run -e PASSWORD=xxx -e USERNAME=xxx -e AUTHGROUP=xxx -e HOST=xxx \
--privileged --name=vpn ghcr.io/jm-lemmi/anyconnect-simple
You need to run the container privileged to allow acces to creating the tunnel device. Fill all the other information, as provided by the VPN provider.
You can use the established VPN connection for other containers:
docker run -it --net=container:vpn alpine
where vpn
is the name of the container.