Using a Dockerfile
1# Build an image using the Dockerfile at current location (specified by '.' at the end)
2# Example: docker build -t [name] .
3docker build -t my_mongodb .
To create a Dockerfile, see https://www.digitalocean.com/community/tutorials/docker-explained-using-dockerfiles-to-automate-building-of-images