Look at the error first:
The mistake is like the above. At first, I thought my command was wrong or something else, but later I found it was not
But it’s still troubleshooting one by one.
first, the command to create a MySQL container:
docker create – P 3306:3306 — name of the container – e mysql_ ROOT_ Password = database password MySQL version:
After creation, enter the command: docker PS – a
to view all containers
Then you can see the MySQL you just named
Start command:
docker start container ID
Then an error will be reported. If an error is reported, please see the following:
Problem solving:
The first is to restart the docker. It is useless for me to restart anyway. The restart command:
systemctl restart docker
it is also possible that you will be OK after restarting
The second is to view all containers through the docker PS – a command. If you have created MySQL before, when you create a MySQL container again, you need to change an external port, not 3306. Ensure that the port and name are different from the MySQL container created before
You can also use the previous MySQL container and start it directly through the docker start container ID
Read More:
- Common command of docker
- [Solved] onlyoffice Error: error self signed certificate and download failed
- 2003 – Can‘t connect to MySQL server on ‘192.168.163.128‘(Unknown error )
- When docker creates a container command: Error response from daemon: No command specified
- Driver failed programming external connectivity on endpoint quirky_ allen
- Fedora32 start container error – OCI runtime create failed: This version of runc doesn’t work on cgroups V2: unknown
- Docker creation container cannot find network card: error response from daemon: network XXXX not found
- Docke Run: response from daemon: OCI runtime create failed: container with id exists:XXX:unknown
- Centos7 quick installation of docker and configuration of image acceleration
- [Solved] kubelet Startup Error: cannot find network namespace for the terminated container
- Vscode configuration connection server docker write code
- After installing MySQL again under Linux, the solution of ‘MySQL module failed to start’ appears
- Docker compose reports an error and multiple containers conflict
- [Sovled] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- MySQL password setting error message: error 1054 (42s22): unknown column ‘password’ in ‘field list’
- MySQL error STORAGE ENGINE failed
- ERROR: Rancher must be ran with the –privileged flag when running outside of Kubernetes
- [error handling] when logging into MySQL with CentOS command, an error 1045 (28000) is reported
- Error: path not specified when the docker 1.7 file is uploaded to the container in CentOS
- Job for docker.service failed because the control process exited with error code. See systemctl sta