Sign inSign up

oriolrt/mongo

By oriolrt

•Updated 3 days ago

mongoDB server from the official docker image. It adds a ssh server to allow remote connectivity.

Image
0

2.1K

oriolrt/mongo repository overview

⁠mongoDB

mongoDB server from the official docker image. This container adds an additional layer where a ssh server is enabled and an user student with password student is created.

Below, the commands used to run this image. Please, see the official site⁠ for all possible ways to run this image.

⁠Quick Start

Run with 1521 port opened:

docker run -dti -p 55117:27017 --name mongo-1 oriolrt/mongo

Run this, if you want the database to be connected remotely:

docker run -dti -p 55117:27017 -p 55122:22  --name mongo-1 oriolrt/mongo

⁠Remote connection

Write on a terminal on a host terminal the following command:

ssh -p 55122 student@localhost

Replace localhost by the IP or a hostname for a remote connection. Be sure that the specified port is opened and the IP reachable.

Tag summary

Content type

Image

Digest

sha256:88ecd7463…

Size

387.7 MB

Last updated

3 days ago

docker pull oriolrt/mongo