How to enter the docker container


 description

Enter the docker container

 command

docker exec -it mysql /bin/bash

 parameter

exec : Run a command in a running container
-i, --interactive : 	Keep STDIN open even if not attached
-t, --tty : Allocate a pseudo-TTY

 result

root@fbaf9d....:/# 

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.