An unofficial extended VSCode code-server image for latest python3 with vscode-python.
PROJECT_DIR=<workspace absolute path>
sudo docker pull ghcr.io/frost-tb-voo/code-server-py
sudo docker run --name=vscode --net=host -d \
-v "${PROJECT_DIR}:/home/coder/project" \
-w /home/coder/project \
--security-opt "seccomp:unconfined" \
novsyama/code-server-py \
code-server \
--auth none
And open http://localhost:8080 with your favorites browser. For detail options, see code-server.
If you want to preserve the settings and extensions, please mount following pathes with -v
option of docker run
command.
- Home : /home/coder
- Extension path : ~/.local/share/code-server/extensions
- Settings path : ~/.local/share/code-server/User/settings.json
- or, ${PROJECT_DIR}/.vscode/settings.json
- Download .vsix file from https://marketplace.visualstudio.com/.
- Put .vsix file into your project directory.
- Start the code-server container.
- Go to http://localhost:8080 and open the terminal and type
code-server --install-extension $vsix_filepath
This requires local installed visual studio code.
Please open an issue:
https://github.com/frost-tb-voo/docker-code-server-py/issues
And mension to @frost-tb-voo.