Docker mount dangling volume

前端 未结 3 1787
北海茫月
北海茫月 2021-01-03 07:23

I recently created a mongodb docker instance running on boot2docker on windows.

Unfortunately during my experimenting with kitematic I managed to accidentally remove

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-03 07:57

    Thanks for your reply it got me on the right track, I managed to start a new mongo container using the following command

    docker run -d -v 571284fbe08a3f2b675af299ec14e55550bad623f6316914d465843fa12d6f18:/data/db mongo
    

    where 571284fbe08a3f2b675af299ec14e55550bad623f6316914d465843fa12d6f18 is the dangling volume identified by using

    docker volume ls
    

提交回复
热议问题