Run:
docker run --name mysql -p 3306:3306 -v /root/bo/data/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -it wzj/mysql
docker: Error response from daemon: Conflict. The container name "/mysql" is already in use by container "3131fbf478c984cf393b65dde14342af4e3331f9f5641a4821b426cdca20abba". You have to remove (or rename) that container to be able to reuse that name.
Solution:
check docker ps-a
saw that the docker container run before has not quit, resulting in the container name situation.
Using the following command, delete the container,
docker rm fb087642b497(Mirror ID)
docker rm 7b739cc26085
Execute the following command:
docker restart nginx
Restarts