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

How to solve the docker journalctl error problem

藏色散人
Release: 2022-01-12 11:51:10
Original
2517 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template