Check out example codes for "how to open mysql in docker". It will help you in understanding the concepts better.

Code Example 1

# login into mysql
docker logs mysql1 2>&1 | grep GENERATED # check the automatically generated password of root user, copy it
docker exec -it mysql1 mysql -u root -p # parse and press the Enter key

Learn ReactJs, React Native from