Skip to content

Container debugging

HariniSureshS edited this page May 24, 2020 · 5 revisions

MySQL

  1. Find the container id for mysql docker ps

  2. Exec into container docker exec -it <mysql-container-id> bash

  3. Access database mysql -u root -p Enter root on password prompt

From here all tables and databases can be accessed

MongoDB

  1. Find the container id and name for mongoDB docker ps

2.Exec into container docker exec -it <mongo-container-name> bash

  1. Access database mongo show dbs use stackbox
Clone this wiki locally