Skip to content

Instantly share code, notes, and snippets.

@rostegg
Last active March 15, 2019 13:39
Show Gist options
  • Select an option

  • Save rostegg/0b86986bf3f4a975a4d566a40546de51 to your computer and use it in GitHub Desktop.

Select an option

Save rostegg/0b86986bf3f4a975a4d566a40546de51 to your computer and use it in GitHub Desktop.
Just run code server instance in selected directory
#!/bin/bash
read -e -p $'\e[32mEnter work dir:\e[0m ' CODE_WORK_DIR
sudo docker run -t -p 127.0.0.1:8443:8443 -v "$CODE_WORK_DIR:/root/project" codercom/code-server --allow-http --no-auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment