Question: After the computer restarts, the mysql container in docker cannot be restarted. I don’t know why The above steps: If sudo docker start name can restart, that is, enter: docker ps and you can see that the service you need is already started, then you don’t need to do the following steps. If it’s just like the above, then continue reading below: Solution: Delete the container that cannot be started, and then run the image again. Note that the container name has changed to mysql at this time, and it is in a closed state. It still cannot run when running the image again, but it can be started when starting the image again. Supplementary content 1. View the mount points occupied by Docker cat /proc/mounts | grep "mapper/docker" | awk '{print $2}' 2. Manually unmount the occupied mount point 3. Restart docker ps -aq | xargs -I {} docker start {} This is the end of this article on how to solve the problem of docker container startup failure. For more information about solutions to docker container startup failure, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: A Brief Analysis on the Time Carrying Problem of MySQL
>>: JavaScript implements the nine-grid mobile puzzle game
Recorded MySQL 5.7.9 installation tutorial, share...
The conversion between time, string and timestamp...
nginx (engine x) is a high-performance HTTP and r...
So which one of these formats, GIF, PNG, and JPG,...
This article shares the specific code of JS to ac...
This article describes the Linux user and group c...
Considering that many people now use smartphones, ...
9 great JavaScript framework scripts for drawing ...
Background-image is probably one of those CSS pro...
The situation is as follows: (PS: The red box repr...
1. Check the firewall status Check the firewall s...
Table of contents 1. Database Operation 2. Data T...
Note: It is recommended that the virtual machine ...
Table of contents Preface 👀 Start researching 🐱🏍...
User table, ID number must be unique, mobile phon...