Solution when systemctl start docker fails to start in Centos7

tags: Centos7  linux  centos

After installing docker, start docker with the command, but the startup fails
Bug recurrence:
Use systemctl status docker.service to view the log:

The cause of the problem: Here is that SELinux in the Linux kernel does not support overlay2 graph driver. There are two solutions, either start a new kernel; or just disable selinux in docker, -selinux-enabled=false.
Here we use the second method to solve
vi /etc/sysconfig/docker

Then start docker: systemctl start docker, the problem is solved

Intelligent Recommendation

Failed to start firewalld.service: Unit is masked when Centos7 systemctl starts firewalld.

In other words, this command is locked, just execute the following command: The following prompt can appear If you want to lock him, you can execute the following command:...

Solve linux (centos7) error when reinstalling mysql systemctl start mysqld.service

When reinstalling mysql, run Report an error. View mysql service status To no avail Then thought of viewing the log: cat /var/log/mysqld.log Found that port 3306 is occupied Then kill the process Just...

CentOS7 solves common errors when systemctl Start starts service

Why can't 80% of the code farmers can't do architects? >>>   The following error is displayed when the service is started. Workaround: Execute: RM /VAR/LOG/SAMBA/LOG.* Funded in: ht...

CentOS7 SystemCTL Start Redis Failure

  I found that there is a mistake in line 81 Seeing the 81st, when the redis permissions just opened ① Comment on this line of Bind 127.0.0.1; ② PROTECTED-MODE is set to NO When I did the second ...

CENTOS7-Command-SystemCTL Start Firewalld

CENTOS7 opens the firewall command Centos7 is installed by defaultfirewalld Tool Put on the firewall command...

More Recommendation

Docker cannot start (SystemCTL Start Docker failed)

Docker cannot start a fault investigation daemon.json configuration error hosts configuration Investigation method: daemon.json configuration error hosts configuration The hosts configuration in Daemo...

docker solution used to start the service being given systemctl

  docker version: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Mirrored version 1 2 1 2 1 2 1 2 1 1 2 3 reference:https://github.com/docker/docker/issues/7459          &n...

Solve systemctl start network fails centos7 set the card mode dhcp problem

Error message: 1. Set the LAN configuration: 2. Turn off the NetworkManager service: systemctl disable NetworkManager, systemctl stop NetworkManager; 3. The network connection mode is set to bridge mo...

Docker fails to start

After docker is installed, when viewing docker related information through commands, an error may occur: Gethttp:///var/run/docker.sock/v1.19/version: dial unix/var/run/docker.sock: no such file or di...

Container in docker fails to start

1 I found a problem when importing the mysql image today. I failed to start the mysql image using the following method, and no error was reported. Used at the time No way, I had to check the logs dock...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top