Created
December 18, 2020 03:58
-
-
Save aryan-gupta/d1b67d2d82b9da247baaa02d421b9187 to your computer and use it in GitHub Desktop.
Failed attempt at Docker VPN Client/RDP container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
RUN apt-get update | |
RUN ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y kmod remmina libgtk2.0-0 libwebkit2gtk-4.0-37 | |
RUN dpkg-reconfigure --frontend noninteractive tzdata | |
RUN mkdir -p /usr | |
COPY anyconnect-linux64-4_9_01095-core-vpn-webdeploy-k9.sh /install-vpn.sh | |
COPY run.sh /run.sh | |
RUN /install-vpn.sh | |
ENTRYPOINT [ "/bin/bash", "/run.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/cisco/anyconnect/bin/load_tun.sh & | |
/opt/cisco/anyconnect/bin/vpnagentd -execv_instance & | |
echo $! > /var/run/vpnagentd.pid | |
remmina & | |
sleep 2 | |
/opt/cisco/anyconnect/bin/vpnui & | |
/bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Command to run Docker container:
docker run -ti --net=host --privileged --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" <container-image-name>