Docker container with MySQL is not loading
Symptoms
A Docker container with MySQL is endlessly rebooting.
The following errors may be registered in the Docker service system log:
level=error msg="stream copy error: read /proc/self/fd/27: file already closed"
level=error msg="<container_id> cleanup: failed to delete container from containerd: cannot delete running task <container_id>: failed precondition"Solution
Warning!
This solution is not suitable if signal 6 is present in the problematic container's log:
docker logs <container_name> | "grep signal 6"
Find the exact container name using the command:
docker ps -a | grep <container_id>To stop the endless reboot, stop and delete the container:
docker stop <container_name>
docker rm <container_name>Now create the container again:
/usr/local/mgr5/sbin/mgrctl -m ispmgr db.server.edit reinstall=on elid=<container_name> sok=ok