Run the container of mongo image with name mongodb
docker run -d --name mongodb mongo
Execute shell of the container
docker exec -it mongodb sh
inside the container, just type
mongo
Run the container of mongo image with name mongodb
docker run -d --name mongodb mongo
Execute shell of the container
docker exec -it mongodb sh
inside the container, just type
mongo
For further actions, you may consider blocking this person and/or reporting abuse
H A R S H H A A -
kaustubh yerkade -
Serhii Korol -
Lukas Mauser -
Top comments (2)
Ok and why we need this exactly? A quality post looks other. Its less info than the text on the docker hub for the official image...
thanks for the response sir, i just want to share about my experience how to use it also as a reminder for me and i purposely wrote it like that to show the commands only without too much explanations. This is my first post, thank you for the feedback next time i will improve it.