mjoniec / Proj2_Planes

Distributed air traffic control system. Microservices, DDD, Docker, HostedServices
0 stars 0 forks source link

Planes

UI

docker compose

on premises powershell

simulated

Running single project from its Dockerfile from powershell command

powershell active directory set for solution and then pointing with sub folder path to Dockerfile is necessary for Docker to be able to see separate subtrees to folders with libraries and hostable projects

open new PS terminal (any directory) and run container with logs outputing (without -d), open in browser

stop container, remove container, remove image (previous PS terminal)

Docker general notes

compose with images rebuild and proper shotdown so it could be launched again

status check

build

run

-d: This is short for detach and means that the Docker container will run in the background. We won’t be seeing any output from the application that’s running inside the container. If we want to see that output, we can use: docker logs container_name

cleanup

compose info

--force-recreate Recreate containers even if their configuration and image haven't changed.

--build Build images before starting containers.

--no-deps Don't start linked services.

alternate restart:

docker system prune -a will delete all images, even ones for other projects. It's recommended against the usage of this.

docker hub