From d7060eb328bac05e119a5a40bd0f3be993e0f151 Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Thu, 11 Jun 2020 22:13:16 -0400 Subject: [PATCH] Created Helpful Mongo Commands (markdown) --- Helpful-Mongo-Commands.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Helpful-Mongo-Commands.md diff --git a/Helpful-Mongo-Commands.md b/Helpful-Mongo-Commands.md new file mode 100644 index 0000000..a2ee22e --- /dev/null +++ b/Helpful-Mongo-Commands.md @@ -0,0 +1,7 @@ +### 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`