Docker: mongodb

Create dockerfile, complete build process then run image with mapped port

#docker run -p 27017:27017 —name mongo1 -d my/repo
#docker ps

In order to stop and remove the mongo

#docker stop mongo1
#docker rm -v mongo1
#docker rm -v docker1

Run mongodb container

#docker run -p 27017:27017 —name mongodb2 -d my/repo —smallfiles
#docker logs mongodb2

Leave a Reply


Reverse Proxy Apache

Neat trick after subdomain is created, want to preserve the url for example lets look at this lab hack (its…

scp to a port

Quick reminder on how to transfer a file to a specific port, the option is upper -P $ scp -P…

Install Apache using Puppet Master

In this vast world of orchestration & automation tools and techniques, here is a quick one on how to get…

Lab hack: docker notes

Allowing Rights to Host Mounted Volumes #docker ps -a #docker run -v -v option creates the volume #docker -v <container…