Skip to content

Instantly share code, notes, and snippets.

@rhizoome
Created August 12, 2018 16:01
Show Gist options
  • Save rhizoome/d58f0cf4685ac4cc1f49f3c303282639 to your computer and use it in GitHub Desktop.
Save rhizoome/d58f0cf4685ac4cc1f49f3c303282639 to your computer and use it in GitHub Desktop.
if [ ! -f .ldocker ]; then
sudo docker create \
-e "LDOCKER=$(pwd)" \
-e "DISPLAY=$DISPLAY" \
-e "XAUTHORITY=$XAUTHORITY" \
-e "TERM=$TERM" \
-e "SHELLTOKEN=sid " \
-e "QT_X11_NO_MITSHM=1" \
-h "$(hostname)" \
-v "$HOME:$HOME" \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-t -i dsid > .ldocker
else
echo .ldocker already exists
fi
@rhizoome
Copy link
Author

--privelged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment