Last active
March 23, 2020 02:33
-
-
Save aleozlx/da4da8ec04599c6d0d740e236e312409 to your computer and use it in GitHub Desktop.
Remote VSCode
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 | |
| CONTAINER_NAME="vscode" | |
| PORT=8000 | |
| if ! $(docker ps | grep -q $CONTAINER_NAME); then | |
| docker run -it -d --rm --name $CONTAINER_NAME -u $(id -u) -p "$PORT:8080" -v "$(pwd):/home/coder/project" codercom/code-server | |
| sleep 3 | |
| fi | |
| docker logs $CONTAINER_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment