added openvpn

This commit is contained in:
Frieder Schlesier 2015-12-16 13:28:20 +01:00
parent b15ac2bc00
commit 654ded0f10
1 changed files with 16 additions and 1 deletions

View File

@ -122,7 +122,7 @@ latex() {
fschl/latex "$@" fschl/latex "$@"
} }
libreoffice(){ libreoffice() {
del_stopped libreoffice del_stopped libreoffice
docker run -d \ docker run -d \
@ -136,6 +136,21 @@ libreoffice(){
fschl/libreoffice fschl/libreoffice
} }
# start from a directory which contains a openvpn config file named 'config.ovpn'
# cert and key files should be in the same directory or relatively referencable
# from the config file
openvpn() {
del_stopped openvpn
docker run -it --rm \
--net host \
--device /dev/net/tun:/dev/net/tun \
--cap-add NET_ADMIN \
-v "$PWD":/etc/openvpn \
fschl/openvpn:latest config.ovpn
}
pulseaudio() { pulseaudio() {
del_stopped pulseaudio del_stopped pulseaudio