diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2015-09-23 15:32:22 -0300 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-09-23 14:58:21 -0400 |
commit | c4d239f56947cf5ae4c4d260946bf5ff9fe040cf (patch) | |
tree | 544a0d004632f002649264ca186580bd9c5ed945 /docker/bitmask-docker.sh | |
parent | 069e832e0fcfb70a2521b4857a34a8e47ffa64bc (diff) |
[feat] disable email firewall on docker containers
- Related: #7471
Diffstat (limited to 'docker/bitmask-docker.sh')
-rwxr-xr-x | docker/bitmask-docker.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/bitmask-docker.sh b/docker/bitmask-docker.sh index ff82e833..329900f8 100755 --- a/docker/bitmask-docker.sh +++ b/docker/bitmask-docker.sh @@ -14,8 +14,8 @@ run(){ CREDS_OPTS="-e BITMASK_CREDENTIALS=/data/credentials.ini -v $BITMASK_CREDENTIALS:/data/credentials.ini" fi + # NOTE: to use containerized VPN from the host you need to add `--net host` docker run --rm -it \ - --net host \ --privileged \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e DISPLAY=unix$DISPLAY \ @@ -23,6 +23,7 @@ run(){ -v `pwd`/data/:/data/ -v `pwd`:/SHARED/ \ -v `pwd`/data/config:/root/.config/leap \ -p 1984:1984 -p 2013:2013 \ + -e LEAP_DOCKERIZED=1 \ --name bitmask \ test/bitmask run $@ @@ -44,14 +45,15 @@ run(){ shell(){ xhost local:root + # NOTE: to use containerized VPN from the host you need to add `--net host` docker run --rm -it \ - --net host \ --privileged \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e DISPLAY=unix$DISPLAY \ -v `pwd`/data/:/data/ -v `pwd`:/SHARED/ \ -v `pwd`/data/config:/root/.config/leap \ -p 1984:1984 -p 2013:2013 \ + -e LEAP_DOCKERIZED=1 \ --name bitmask \ --entrypoint=bash \ test/bitmask |