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
#!/bin/bash | |
if [ "$#" == 0 ]; then | |
docker run --workdir=/volume -p 8889:8889 -it --rm --net=host -e DISPLAY=$DISPLAY --ipc=host -v $HOME/.Xauthority:$HOME/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/volume myimage:1.0 /bin/bash | |
elif [ "$#" == 1 ]; then | |
docker run --workdir=/volume -p 8889:8889 -it --rm --net=host -e DISPLAY=$DISPLAY --ipc=host -v $HOME/.Xauthority:$HOME/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/volume myimage:1.0 /bin/bash | |
else | |
echo 'Usage: bash start_docker_shell.sh' | |
exit 1 | |
fi |
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
generate private and public key | |
$ cd ~/.ssh | |
$ ssh-keygen -o -t rsa -C "[email protected]" | |
print the public key | |
$ ls | |
$ cat id_rsa.pub | |
copy the public key to Github > Settings > SSH and GPK keys > Add new SSH |