Unable to start docker mongo image on windows

前端 未结 4 1224
攒了一身酷
攒了一身酷 2020-12-18 18:21

When starting the image I get the following error:

 2019-02-27T17:09:41.095+0000 E STORAGE  [initandlisten] WiredTiger error (17) [1551287381:95206][1:0x7fae         


        
4条回答
  •  离开以前
    2020-12-18 18:56

    Not entirely the same issue, but I saw the same error messages when simply spinning up a Docker container for mongo in Ubuntu and attempting to mount an existing directory to the container:

    docker run --name some-mongo -p 27017:27017 -v $PWD/db-data:/data/db -d mongo
    

    In my case the errors only showed up if I was trying to run the command from a directory on my mounted HDD, and I was able to solve it by migrating my codebase with the /db-data directory to my SSD where Ubuntu is installed.

提交回复
热议问题