FROM mongo:3.2.10
#create DB directory
RUN mkdir -p /data/db
EXPOSE 27017
CMD ["mongod"]
When I run the container I want to automatically create a DB called “CBDB”. I do not want to manually run the mongo shell, want the new DB to be created automatically.