how to access a mongodb database inside a docker container code example Example: access mongodb running in docker docker exec -it mongodb bash mongo