I just created a new dotnet core project and added docker support as well as orchestration support similar to what this MSDN tutorial describes.
The docker compose file looks as follows. Here generator31 is the name of the Visual Studio project that I created.
version: '3.4'
services:
generator31:
image: ${DOCKER_REGISTRY-}generator31
build:
context: .
dockerfile: generator31/Dockerfile
What is this DOCKER_REGISTRY here. Also what is the $ sign doing there. Where can I get more info about that.
When I run the command
docker-compose up
The image that's finally generated is generator31:latest
What's intriguing here is when I removed ${DOCKER_REGISTRY-} from the docker file to look like the following,
services:
generator31:
image: generator31
.....Rest omitted for brivity
the result is exactly the same. The final image is again generator31:latest.
So I am not clear whats DOCKER_REGISTRY is doing here.