Giter Site home page Giter Site logo

pieterscheffers / docker-alpine-mongo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mvertes/docker-alpine-mongo

0.0 3.0 0.0 18 KB

MongoDB Dockerfile based on light alpine container

License: MIT License

Dockerfile 14.50% Makefile 5.56% Shell 45.86% JavaScript 34.08%

docker-alpine-mongo's Introduction

license_badge docker_build_badge idocker_image_badge docker_pulls_badge

This repository contains Dockerfile for MongoDB 4.0 container, based on the Alpine edge image.

Install

As a prerequisite, you need Docker to be installed.

To download this image from the public docker hub:

$ docker pull mvertes/alpine-mongo

To re-build this image from the dockerfile:

$ docker build -t mvertes/alpine-mongo .

Usage

To run mongod:

$ docker run -d --name mongo -p 27017:27017 mvertes/alpine-mongo

You can also specify the database repository where to store the data with the volume -v option:

$ docker run -d --name mongo -p 27017:27017 \
  -v /somewhere/onmyhost/mydatabase:/data/db \
  mvertes/alpine-mongo

To run a shell session:

$ docker exec -ti mongo sh

To use the mongo shell client:

$ docker exec -ti mongo mongo

The mongo shell client can also be run its own container:

$ docker run -ti --rm --name mongoshell mongo host:port/db

Limitations

  • On MacOSX, volumes located in a virtualbox shared folder are not supported, due to a limitation of virtualbox (default docker-machine driver) not supporting fsync().

docker-alpine-mongo's People

Contributors

mvertes avatar deniscarriere avatar pieterscheffers avatar viktor-ku avatar cabaalexander avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.