[root@master ~]# docker ps | grep mysql
[root@master ~]# docker ps -a | grep mysql
860b9dffae92 registry.cn-beijing.aliyuncs.com/qingfeng666/mysql:5.7 "docker-entrypoint.s…" 9 months ago Exited (255) 9 months ago 0.0.0.0:3306->3306/tcp, 33060/tcp mysql57
[root@master ~]# docker start 860b9dffae92
860b9dffae92
[root@master ~]# docker ps | grep mysql
860b9dffae92 registry.cn-beijing.aliyuncs.com/qingfeng666/mysql:5.7 "docker-entrypoint.s…" 9 months ago Up 3 seconds 0.0.0.0:3306->3306/tcp, 33060/tcp mysql57
[root@master ~]# docker exec -it 860b9dffae92 bash
root@860b9dffae92:/# ps -ef
UID PID PPID C STIME TTY TIME CMD
mysql