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: Error response from daemon: OCI runtime create failed: container_linux.go:380
- See system logs and ‘systemctl status docker.service‘ for details
- The solution of insufficient disk space of docker in Ubuntu
- [Solved] Docker error: “unknown runtime specified NVIDIA” using GPU“
- [Solved] docker Error: System has not been booted with systemd as init system (PID 1). Can‘t operate. Failed to con
- [Solved] Docker Staratup Error: Failed to start Docker Application Container Engineadsafdsad.
- Docker Start Container Error: Error response from daemon: task already exists: unknown
- [Solved] Gbase Install Error: service cgconfig is not exist on hosts
- stream copy error: reading from a closed fifo [How to Solve]
- docker-compose -version Run Error [How to Fix]
- [Solved] Job for docker.service failed because the control process exited with error code. After changing the docker configuration
- [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
- Docker Error: error invoking remote method ‘docker-start-container‘: error: (http code 500) server error –
- [Solved] Docker failed to delete image error: no such image: CentOS
- [Solved] Docker Install Error: [Errno 14] curl#60 – Peer‘s Certificate issuer is not recognized
- How to Solve Error: Driver “kvm2“ not found
- Docker pull Command Error response from daemon: Head https://registry-1.docker.io/v2/library/
- [Solved] CentOS7 python import docker Error: No module named selectors
- Install and start the tftp-server server and possible solutions to Redirecting to /bin/systemctl restart xinetd.service problems
- The docker export container cannot be run after being imported: error response from daemon: no command specified