First you need to install Docker in the host, then use the following steps:
docker pull mongo
docker run -d -p 27017-27019:27017-27019 -v <path/db/local/host>:/data/db --name mongodb -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=strong_password mongo
docker exec -it mongodb bash
mongo -u admin -p <previous password>
exit
exit