Skip to content

Helpful Mongo Commands

Luke Berndt edited this page Jun 12, 2020 · 1 revision

Join the Mongo Container

On the host machine where all the containers are, run:

docker exec -i -t $(docker ps -a | grep mongo | awk '{print $1}') /bin/bash

This will give you a shell inside the mongo container. Start mongo with: mongo

Clone this wiki locally