Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 1.16 KB

TunningDocker.md

File metadata and controls

11 lines (6 loc) · 1.16 KB

Tuning Docker for better performance and Debugging

It is important to set Docker up properly with enough memory RAM and CPU assigned to it in order to improve the performance on your local/development environment, or you will get errors when starting the containers with VS 2019 or "docker-compose up". Once Docker is installed in your machine, enter into its Settings and the Advanced menu option so you are able to adjust it to the minimum amount of memory and CPU (Memory: Around 4096MB and CPU:3) as shown in the image.

Share drives in Docker settings, in order to deploy it as a Docker Compose application and also to debug with Visual Studio 2019 (See the below image)

Note: The first time you hit F5 it'll take a few minutes, because in addition to compile the solution, it needs to pull/download the base images (SQL for Linux Docker, ASPNET, MongoDb and RabbitMQ images, etc) and register them in the local image repo of your PC. The next time you hit F5 it'll be much faster.