Because the shortcut key of my screenshot tool is Ctrl+q
, and the shortcut key of docker desktop
exit is also Ctrl+q
, when I press Ctrl+q
, docker desktop
exits, and then when I enter the docker command in the console,
burst this line of error
error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json": open //./pipe/docker_engine: The system cannot find the file specified.
Solution:
reopen docker desktop
when the color of the icon in the lower-left corner is the same as that shown in the picture, it proves that docker operates normally
then I go to CMD and enter the docker command
to see that there is no error