Enter the docker container
docker exec -it mysql /bin/bash
exec : Run a command in a running container -i, --interactive : Keep STDIN open even if not attached -t, --tty : Allocate a pseudo-TTY
I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.