Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.06 KB

Readme.md

File metadata and controls

45 lines (30 loc) · 1.06 KB

Medium Clone App

Tech Stack

  • React.JS (frontend)
  • Express.JS (backend)
  • Docker

Start the application

  • Clone the repository
  • In terminal, go to /medium-app directory and use below command
docker-compose up --build

Docker Memory Hungry

I have encountered this issue where the Docker process is running in background even after the docker is closed.

Docker uses Windows Subsystem for Linux which is a feature of Microsoft Windows that allows developers to run a Linux environment without the need for a separate virtual machine or dual booting.

Go to Powershell

wsl --shutdown

To reduce the RAM usage by WSL by giving a .wslconfig config file.

Go to C:/Users/<user_id>/ and create a file .wslconfig and the below details. Add processors can be half of total processors.

[wsl2]
memory=2GB
processors=1 

You can check your processor cores in Task Manager > Performance > CPU > Here check for Cores field.

After this config file is created. You can start docker and it only consumes the resources within the limit.