XTDrone/sitl_config/usv/docker/join.bash

12 lines
235 B
Bash
Executable File

#!/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 -