...

/

Solution to Challenge: Running MongoDB Database

Solution to Challenge: Running MongoDB Database

Learn the solution to the challenge you completed.

We'll cover the following...

Solution

The following command will run the MongoDB:

docker run \
  -it --rm --name mongodb \
  -p 3000:27017 \
  --mount "src=mongodata,target=/data/db" \
  -e
...