(Linex) error reported when executing systemctl restart docker
failed to restart docker.service : Unit is not loaded properly: Invalid argument. See system logs and ‘systemctl status docker.service ’ for details.
If the docker is shut down abnormally, it will be unable to restart the docker. If the docker is shut down abnormally, it will result in / etc / SYSTEMd / system/ docker.service Some processes in the file are still operating, resulting in the problem that docker cannot be restarted. Failed to restart docker.service : Unit is not loaded properly: Invalid argument. See system logs and ‘systemctl status docker.service ’ for details.
Analyze the reasons
/ etc / SYSTEMd / system/ docker.service There are cache or process blocking
Solutions
move file
-
- 1.Add the file just moved to MV/home/docker.service/Etc/SYSTEMd/system.
- will/etc/SYSTEMd/system/docker.service Move files first (MV/etc/SYSTEMd /system)/docker.service /If you run systemctl restart docker, you will be prompted to report an error and let you see the status docker.service (view status) , 2.showing/etc/SYSTEMd/system/docker.service File, open this file, magic display and content, we have just moved this file.
-
- 3.Rerun systemctl restart docker
again
-
Backup files
-
- 1.CD/etc/SYSTEMd/system
- 2.docker.service Backup CP docker.service docker.service_Bak
- 3.force delete docker.service File RM – RF docker.service
- 4.Restart systemctl restart docker
- 5.View the docker status
Read More:
- [Solved] Job for network.service failed because the control process exited with error code. See “systemctl st
- Linux Install Docker Error: Failed to restart docker.service: Unit docker.service not found.
- redhat7. 5 system service is not started automatically and use systemctl start error: error getting authority: error initializing authority: CO, (the server will restart)
- [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
- [Solved] docker Error: System has not been booted with systemd as init system (PID 1). Can‘t operate. Failed to con
- Install and start the tftp-server server and possible solutions to Redirecting to /bin/systemctl restart xinetd.service problems
- [Solved] Linux Service Start Error: *.service: Main process exited, code=exited, status=203/EXEC
- Firewall Status View Error: service iptables status [How to Solve]
- Linux system service command error: Failed to allocate directory watch: Too many open files
- [Solved] Docker Staratup Error: Failed to start Docker Application Container Engineadsafdsad.
- 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…
- System has not been booted with systemd as init system (PID 1). Can‘t operate
- Docker pull Command Error response from daemon: Head https://registry-1.docker.io/v2/library/
- [problem solving] the problem of err returned non zero status 1 or status 2 is solved after upgrading python3 in Ubuntu
- Virtual machine failed to start network service error: ob for network.service failed because the control process exited with error code
- Docker Error: error invoking remote method ‘docker-start-container‘: error: (http code 500) server error –
- [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
- Job for network.service failed [How to Solve]