Home > Article > Operation and Maintenance > How to solve the docker journalctl error problem
Solution to docker journalctl error: 1. Open the command window; 2. Execute the "[root@377c6ef694e7 src]# chmod -R 777 /var/lib/mysql" command.
The operating environment of this article: centos7 system, Docker version 20.10.11, Dell G3 computer.
How to solve the docker journalctl error problem?
See “systemctl status mysqld.service“ and “journalctl -xe“ for details.
Scenario:
docker container: start mysql
System: centos
Problem:
[root@377c6ef694e7 src]# systemctl start mysqld Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. [root@377c6ef694e7 src]# journalctl -xe
Solution:
[root@377c6ef694e7 src]# chmod -R 777 /var/lib/mysql # Just add permissions.
Recommended Study: "docker tutorial"
The above is the detailed content of How to solve the docker journalctl error problem. For more information, please follow other related articles on the PHP Chinese website!