# If not working, first do: sudo rm -fr /tmp/.docker.xauth
# It still not working, try running the script as root.
# then run the script

xhost local:root

docker run -it \
       --name=ros1_noetic_roboGraph \
       --mount type=bind,source="$(pwd)"/DGP,target=/DGP \
       --env="DISPLAY=$DISPLAY" \
       --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
       --env="XAUTHORITY=$XAUTH" \
       --volume="$XAUTH:$XAUTH" \
       --net=host \
       --privileged \
       ros1_noetic_robograph:latest \
       bash

echo "Done. "
