https://github.com/soulmachine/docker-images/tree/master/code-server
Given a C++ project on local disk, you can open this project by running:
docker run -d --name code-server --init -u "$(id -u):$(id -g)" -p 8080:8080 -v $(pwd):/project soulmachine/code-server:cpp /project
The command above mounts your local source code to /project in the container, and open /project in vscode. You can change /project to whatever path your prefer.
Use docker logs -f code-server to monitor the container, it will print the URL(default http://localhost:8080) and the password(default passw0rd) after a few seconds.
Open the URL in browser and enjoy!
All available images:
| Language | Docker Image |
|---|---|
| C++ | soulmachine/code-server:cpp |
| C++ | soulmachine/code-server:clang |
| Python | soulmachine/code-server:python |
| Rust | soulmachine/code-server:rust |
| Java | soulmachine/code-server:java |
Content type
Image
Digest
sha256:71f842b09…
Size
827.5 MB
Last updated
over 3 years ago
docker pull soulmachine/code-server:clang