Today we will setup a Visual Studio Code instance running on Docker, so that you can access VSCode via the web browser.
VSCode in Docker
The work directory will be under code
and the application will store its data under data
. Lets go ahead and create them:
1 2 |
|
Run the vscode container:
1 2 3 4 |
|
The password that you require on login will be prompted in the output:
1 2 3 4 5 6 7 8 9 10 11 |
|
Access vscode on https://localhost:8443/
and after you accepted the self-signed certificate warning, you will be presented with the login page:
After you have logged a example of creating a python file will look like this:
The source code for this docker image can be found at https://github.com/ruanbekker/dockerfiles/tree/master/vscode .
Different versions
Currently I have only python available on docker hub with the requests and flask packages available. But you can fork the repository and add the upstream or packages of your choice.