GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dockerfile/mongodb: MongoDB Dockerfile for trusted automated Docker builds.

BranchesTags
Open more actions menu

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

MongoDB Dockerfile

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

Base Docker Image

  • dockerfile/ubuntu

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull dockerfile/mongodb

    (alternatively, you can build an image from Dockerfile: docker build -t="dockerfile/mongodb" github.com/dockerfile/mongodb)

Usage

Run mongod

docker run -d -p 27017:27017 --name mongodb dockerfile/mongodb

Run mongod w/ persistent/shared directory

docker run -d -p 27017:27017 -v <db-dir>:/data/db --name mongodb dockerfile/mongodb

Run mongod w/ HTTP support

docker run -d -p 27017:27017 -p 28017:28017 --name mongodb dockerfile/mongodb mongod --rest --httpinterface

Run mongod w/ Smaller default file size

docker run -d -p 27017:27017 --name mongodb dockerfile/mongodb mongod --smallfiles

Run mongo

docker run -it --rm --link mongodb:mongodb dockerfile/mongodb bash -c 'mongo --host mongodb'
Usage with VirtualBox (boot2docker-vm)

You will need to set up nat port forwarding with:

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

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

About

MongoDB Dockerfile for trusted automated Docker builds.

dockerfile.github.io/#/mongodb

Resources

Readme
MIT license
Activity
Custom properties

Stars

330 stars

Watchers

23 watching

Forks

233 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.