Docker Community Forums

Share and learn in the Docker community.

Mongo container with different directory

(Reharik) #1

Hi, is there a way to use the stock mongo container but specify a different directory?
I tried copying there Dockerfile and changing all references to /data/db to /data/mongo/db but it doesn’t work.
Any ideas?