Custome MongoDB sudo docker build -t customizedmongo:version1 . sudo docker run customizedmongo:version1 sudo docker ps --all Copy the container id from the list sudo docker start "container-id" sudo docker exec -it sh mongo