You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Root cause:
As per the answer of mongodb github issue #docker-library/mongo#232 (comment) , We can not use shared memory for mongodb docker container and WSL uses VM to host the Docker daemon.
Solution:
We need to create a separate docker volume to build mongodb container.
Below is the docker-compose.yaml which can be used to build db container successfully:
Issue :
Received below error when tried to start mongo db container on WSL.
Root cause:
As per the answer of mongodb github issue #docker-library/mongo#232 (comment) , We can not use shared memory for mongodb docker container and WSL uses VM to host the Docker daemon.
Solution:
We need to create a separate docker volume to build mongodb container.
Below is the docker-compose.yaml which can be used to build db container successfully:
Refernce URLs:
https://stackoverflow.com/questions/54911021/unable-to-start-docker-mongo-image-on-windows
docker-library/mongo#74
The text was updated successfully, but these errors were encountered: