Exception during Linux Installation of docker: failed to restart docker.service: unit docker.service not found
Linux CentOS version confirmation
1. Linux system centos7 installation docker
install here in centos7. You can use the following command to view the CentOS version
lsb_release -a
Check whether docker list is installed
yum list installed | grep docker
2.2 installing docker
yum -y install docker
-Y means do not ask for installation until the installation is successful. After the installation, check the installation list again
2.3 start docker
systemctl start docker
2.4 viewing docker service status
systemctl status docker
-
- linux centos8 installation docker
-
- installation dependency
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce docker-ce-cli containerd.io
Install docker
yum install docker-ce docker-ce-cli
Start docker
systemctl start docker
Startup self startup
Set the docker to start automatically after startup
systemctl enable docker
Read More:
- [Solved] docker Startup Error: Job for docker.service failed because the control process exited with error code
- [Solved] Job for docker.service failed because the control process exited with error code. After changing the docker configuration
- Centos8 Could not restart the Network: Failed to restart network.service: Unit network.service not found
- [Solved] Docker Download Mirror Error: Cannot connect to the Docker daemon at…
- [Solved] Docker Staratup Error: Failed to start Docker Application Container Engineadsafdsad.
- See system logs and ‘systemctl status docker.service‘ for details
- [Solved] docker: Error response from daemon: OCI runtime create failed: container_linux.go:380
- Docker pull Command Error response from daemon: Head https://registry-1.docker.io/v2/library/
- [Solved] Win 10 VS Code Connect to the container of the server error: Cannot connect to the Docker daemon at … Is the docker daemon running
- [Solved] Docker Install Error: [Errno 14] curl#60 – Peer‘s Certificate issuer is not recognized
- [Solved] Docker Filed to Start Container: Error response from daemon: network XXX not found
- [Solved] Service network restart reported an error and failed to restart
- Docker Error: error invoking remote method ‘docker-start-container‘: error: (http code 500) server error –
- Service network restart reported an error and failed to restart [How to Solve]
- Restart and stop of nginx in Linux service
- Install and start the tftp-server server and possible solutions to Redirecting to /bin/systemctl restart xinetd.service problems
- [Solved] docker Error: System has not been booted with systemd as init system (PID 1). Can‘t operate. Failed to con
- Failed to start firewalld.service: Unit is masked [How to Solve]
- Docker Startup Error: standard_init_linux.go:211: exec user process caused “no such file or directory”
- [Solved] websocket error in Linux service: / lib64 / libc. So. 6: version ` glibc_2.17‘ not found