Created
August 12, 2018 16:01
-
-
Save rhizoome/d58f0cf4685ac4cc1f49f3c303282639 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--privelged