$ ./open-dev-console.sh
root@957b18bdb28a:/app# dotnet new mvc --language F# --name WebAppMVC --output WebAppMVC
PRJ=WebAppMVC
$ ./release.sh -b
Published projects are located at volume/home/build/WebAppMVC
.
$ ./release.sh
Access to http://localhost:8001
, you'll get welcome message.
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
957b18bdb28a devcontainer_runtime "sleep infinity" 5 min ago Up 3 min 0.0.0.0:8001->80/tcp devcontainer_runtime_run_fc2a41765933
$ docker inspect 957b18bdb28a| grep IPAddress
"SecondaryIPAddresses": null,
"IPAddress": "",
"IPAddress": "172.20.0.2",
5. Visual Studio Code with Remote - Containers extention
Ctrl-P
→>Remote-Containers: Open Folder in Container...
- Select the root of this git tree from File Open Dialog.
- Automatically, VS Code find
.devcontainer/docker-compose.yml
and start communication with a docker container(nameddotnet-core-dev
).
$ ./release.sh -b && ./release.sh