#!/usr/bin/env bash
#
# Typical usage: ./join.bash vrx
IMG=$(basename $1)
xhost +
containerid=$(docker ps -aqf "ancestor=${IMG}")
docker exec --privileged -e DISPLAY=${DISPLAY} -e LINES=`tput lines` -it ${containerid} bash
xhost -