how to docker a mongodb database code example Example: mongodb docker docker run -d -p 27017-27019:27017-27019 --name mongodb mongo:4.0.4