Commit 981b8e58 authored by Matteo Quintiliani's avatar Matteo Quintiliani
Browse files

Add runSwarmInDocker.sh

parent de2237b9
#!/bin/bash
DIRNAME="`dirname $0`"
# General based on ifconfig
MYIP="`ifconfig | grep -w inet | egrep -v -w "127.0.0.1" | awk '{print $2}' | head -n 1`"
xhost +${MYIP} || exit
docker run -it \
-e DISPLAY=${MYIP}:0 \
--mount type=bind,source=/tmp/.X11-unix,target=/tmp/.X11-unix \
docker_swarm \
$@
# gitlab.rm.ingv.it:7654/docker/docker_swarm \
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment