When I run my docker compose project in VS 2022 I get this error:
How did it happen?
Today my docker did not start I and got the "failed to initialize shutting down" error. After some hours of searching and trying different solutions, I finally had to uninstall and re-install the Docker Desktop. now the Docker Desktop works but my project doesn't start.
I see this log in the output window:
...
========== Debugging ==========
docker ps --filter "status=running" --filter "label=com.docker.compose.service" --filter "name=^/Gateway$" --format {{.ID}} -n 1
7aa2cd27f6b0
docker exec -i 7aa2cd27f6b0 /bin/sh -c "if PID=$(pidof dotnet); then kill $PID; fi"
Error: No such container: 7aa2cd27f6b0
...
Update:
After a restart I still get the same error but the container IDs are updated and the "No such container" error is gone.
Container Gateway Starting
Container Gateway Started
Done! Docker containers are ready.
========== Debugging ==========
docker ps --filter "status=running" --filter "label=com.docker.compose.service" --filter "name=^/Gateway$" --format {{.ID}} -n 1
20b3f67d2561
docker exec -i 20b3f67d2561 /bin/sh -c "if PID=$(pidof dotnet); then kill $PID; fi"
