This lab uses Docker and Visual Studio Code with the Remote Containers extension to provide a consistent repeatable disposable development environment for all of the labs in this course.
You will need the following software installed:
- Docker Desktop
- Microsoft Visual Studio Code
- Remote Containers extension from the Visual Studio Marketplace
All of these can be installed manually by clicking on the links above or you can use a package manager like Homebrew on Mac of Chocolatey on Windows. If you want to use one of these package managers, follow these instructions:
Alternately you can use Vagrant to bring up a virtual machine to work in following these instructions but this is no longer the recommended way to work. Only use if you cannot use the above two methods: Install with Vagrant
If you want to manually close the containers you can use the command pallet and select Close Remote Connection. If you want to permanently delete the container you can use Docker commands to:
docker ps -a
docker stop <container-id>
docker rm <container-id>
Where <container-id>
is the id of the container returned from the docker ps -a
command.
For Example:
$ docker ps -a
(master)
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d9c94acd264b vsc-lab-starter-2013d33dfd4af07fa71a13e87cbc6b63 "/bin/sh -c 'echo Co…" 56 minutes ago Up 56 minutes 5000/tcp affectionate_elgamal
$ docker stop d9c94acd264b
$ docker rm d9c94acd264b