Docker container deployment Mysql database server

This section will be used Docker command as follows:

docker images view mirror mysql ID 
Docker RUN -d -p 4406 : 3306 registry.cn-hangzhou.aliyuncs.com/zhufc/ mysql: V2 generated by mirroring the starting container 4406 mysql mapped port is the default port 3306 
Docker PS - A View generated container 
Docker PS   
Docker restart container id 
Docker container id sTOP to stop container 
docker rm container vessel id delete id 
Docker Exec - IT {id} bash mysql container into the designated container 
PS -ef | grep mysql mysql View service vessel bound to start mysql service starts

 

Guess you like

Origin www.cnblogs.com/fighter007/p/11966558.html