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] docker Error response from daemon OCI runtime create failed container_linux.go380
- [Solved] CentOS build a docker error: job for docker.service failed….
- Transaction check error during docker CE installation [How to Solve]
- Docker Open Error: Warning: docker.service changed on disk. Run ‘systemctl daemon-reload‘ to reload unit
- [Solved] Job for docker.service failed because the control process exited with error
- [Solved] Docker Start Error: iptables failed: iptables –wait -t nat -A DOCKER -p tcp -d 0/0 –dport 10241
- ubuntu docker dm_task_run failed error [How to Solve]
- [Solved] kubelet Startup Error: cannot find network namespace for the terminated container
- [Solved] Docker Error: Error response from daemon: driver failed programming external connectivity on endpoint
- How to Fix ERROR Couldn’t connect to Docker daemon at http+docker://localunixsocket
- [Solved] Docker Error: got permission denied while trying to connect to the docker daemon socket at…
- [Solved] Docker failed to start daemon: error initializing graphdriver: driver not supported
- [Solved] K8s Initialize Error: failed with error: Get “http://localhost:10248/healthz“
- How to Solve Docker failed to initialize Error
- How to Solve kubelet starts error (k8s Cluster Restarted)
- Docker Build Error: Failed to get D-Bus connection: Operation not permitted [Solved]
- Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen is reported when docker port mapping or starting the container
- Start Docker Quickstart Terminal error This computer is running Hyper-V. VirtualBox won’t boot a 64bits VM when Hyper-V is activated
- docker load Error processing tar file(exit status 1): archive/tar: invalid tar header
- [Solved] Error in installing docker requires: fuse overlayfs >= 0.7