Home >Operation and Maintenance >Docker >How to solve the docker journalctl error problem

How to solve the docker journalctl error problem

藏色散人
藏色散人Original
2022-01-12 11:51:102516browse

Solution to docker journalctl error: 1. Open the command window; 2. Execute the "[root@377c6ef694e7 src]# chmod -R 777 /var/lib/mysql" command.

How to solve the docker journalctl error problem

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn