-
Notifications
You must be signed in to change notification settings - Fork 7
Container debugging
HariniSureshS edited this page May 24, 2020
·
5 revisions
-
Find the container id for mysql
docker ps -
Exec into container
docker exec -it <mysql-container-id> bash -
Access database
mysql -u root -pEnter root on password prompt
From here all tables and databases can be accessed
-
Find the container id and name for mongoDB
docker ps -
Exec into container
docker exec -it <mongo-container-name> bash -
Access database
mongoshow dbsuse stackbox
We can access the collections(tables) and its contents from here.