Error message: Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
Environment: The local environment is the Centos7 system installed on VirtualBox.
Docker service status: According to the prompt, use the command systemctl status docker.service to check the status of the docker service, and find the following status information:
Solution: Uninstall docker and reinstall the new docker.
Solution steps:
1. Uninstall Docker. Uninstall the old version of docker without success.
(1) View installed packages: yum list installed | grep docker
Old versions installed on this machine: docker.x86_64, docker-client.x86_64, docker-common.x86_64
(2) Delete the installed Docker-related software packages:
yum -y remove docker.x86_64
yum -y remove docker-client.x86_64
yum -y remove docker-common.x86_64
2. Install Docker
(1) Check the kernel version [Docker requires the kernel version of the Centos system to be higher than 3.10]
uname -r [The kernel version of this machine: 3.10.0-327.el7.x86_64]
(2) Update the yum package to the latest (the time may be a bit long, wait slowly…)
yum update
(3) Install the required software packages. [Yum-util provides the yum-config-manager function, the other two are required by the devicemapper driver]
yum install -y yum -utils device-mapper-persistent-data lvm2
(4) Set yum source
yum install -y yum -utils device-mapper-persistent-data lvm2
(5) View the docker version of the warehouse
yum list docker-ce –showduplicates | sort -r
(6) Install docker
yum install docker-ce
(7) Start docker, set to start docker at boot.
systemctl start docker
systemctl enable docker
systemctl stop docker [Supplement: This is the command to close docker]
(8) View version
docker version
(9) To check whether the startup is successful, you can use the search command.
docker search mysql
(10) View log status
systemctl status docker.service
Read More:
- [Solved] Job for docker.service failed because the control process exited with error
- [Solved] Job for mysqld.service failed because the control process exited with error code.
- [Solved] CentOS build a docker error: job for docker.service failed….
- [Solved] Postgres Start Error: Job for postgresql.service failed because the control process exited with error code.
- Docker Open Error: Warning: docker.service changed on disk. Run ‘systemctl daemon-reload‘ to reload unit
- [Solved] Docker Start Error: iptables failed: iptables –wait -t nat -A DOCKER -p tcp -d 0/0 –dport 10241
- How to Solve Docker ERROR: Service’workspace’ failed to build: ERROR: Service’php-fpm’ failed to build
- [Solved] docker Error response from daemon OCI runtime create failed container_linux.go380
- Windows Install Docker Error: Cannot enable Hyper-V service
- [Solved] docker Error: bridge docker0 failed: exchange full
- [Solved] Playbook Start Nginx Error: Unable to start service nginx: Job for nginx.service fd with error code
- How to Fix ERROR Couldn’t connect to Docker daemon at http+docker://localunixsocket
- Mac Docker pull Error: Error response from daemon: Get https://xx.xx.xx.xx/v2/: Service Unavailable
- [Solved] Docker Error: got permission denied while trying to connect to the docker daemon socket at…
- ubuntu docker dm_task_run failed error [How to Solve]
- Docker Create or Start Nginx Error: docker: Error response from daemon: driver failed programming external connectivity
- Docker run Error: container_linux.go:235: starting container process caused “process_linux.go:258: appl
- [Solved] docker: Error response from daemon: driver failed programming external connectivity on endpoint mysql-test …
- [Solved] Docker Error: driver failed programming external connectivity on endpoint
- Docker Create tomcat Error standard_init_linux.go:211: exec user process caused “no such file or directory”