Tag Archives: systemctl status docker.service

See system logs and ‘systemctl status docker.service‘ for details

(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. 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.
      1. 3.Rerun systemctl restart docker

    again

Backup files

    1. 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