aspnetrun / run-aspnetcore-microservices

Microservices on .Net platforms which used ASP.NET Web API, Docker, RabbitMQ, MassTransit, Grpc, Yarp API Gateway, PostgreSQL, Redis, SQLite, SqlServer, Marten, Entity Framework Core, CQRS, MediatR, DDD, Vertical and Clean Architecture implementation with using latest features of .NET 8 and C# 12
https://www.udemy.com/course/microservices-architecture-and-implementation-on-dotnet/?couponCode=JULY24
MIT License
2.55k stars 1.38k forks source link

Severity Code Description Project File Line Suppression State Error DT1001 ERROR: for catalog.api Cannot create container for service catalog.api: Duplicate mount point: /root/.aspnet/https If the error persists, try restarting Docker Desktop. docker-compose C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Sdks\Microsoft.Docker.Sdk\build\Microsoft.VisualStudio.Docker.Compose.targets 384 #2

Closed punkouter2021 closed 4 years ago

punkouter2021 commented 4 years ago

Got this error while building container. any idea ?

mehmetozkaya commented 4 years ago

it seems error occurs from the volume definitions. Once you defined before some other projects it gives a duplicate mount error. Could you please remove all aspnet generated volumes (as below lines) from docker-compose.override.yml file and try again ?

volumes:

punkouter2021 commented 4 years ago

catalog api get has this error RabbitMQ.Client.Exceptions.BrokerUnreachableException: 'None of the specified endpoints were reachable'

Is it suppose to be as simple as docker compose up and everything just works ? Im new to this.

mehmetozkaya commented 4 years ago

yes exactly, if you run docker desktop on your local, all you need to run below command on top of the docker-compose file. docker-compose -f docker-compose.yml -f docker-compose.override.yml up –d

Catalog has no any dependency of RabbitMQ so error should come from different container.

Could you please send me the image and what steps you are following before that ?

punkouter2021 commented 4 years ago

I was trying to F5 the dock compose in VS2019.. Ill try the command line..