Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

MongoDB Dockerfile

This repository contains Dockerfile of MongoDB shell for Docker's automated build published to the public Docker Hub Registry.

Base Docker Image


  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull kokaz/mongo-shell

    (alternatively, you can build an image from Dockerfile: docker build -t="kokaz/mongo-shell"


Run mongo

docker run -it --rm kokaz/mongo-shell

Run mongo w/ a linked container

docker run -it --rm --link mongodb:mongodb kokaz/mongo-shell mongodb
Usage with VirtualBox (boot2docker-vm)

You will need to set up nat port forwarding with:

VBoxManage modifyvm "boot2docker-vm" --natpf1 "guestmongodb,tcp,,27017,,27017"

This will allow you to connect to your mongo container with the standard mongo commands.

Docker Pull Command
Source Repository

Comments (0)