docker errors in daily use

Error1

  • Steps to reproduce the error:

    1
    2
    $ kubectl get pods -A
    Unable to connect to the server: EOF

    According to this answer, I tried

    1
    2
    $ docker ps -a --filter name=k8s_kubedns_kube-dns --format "table {{.ID}}\t{{.Image}}"
    Error response from daemon: open \\.\pipe\docker_engine_linux: The system cannot find the file specified.
    1
    2
    3
    4
    5
    6
    7
    8
    $ docker ps
    Error response from daemon: open \\.\pipe\docker_engine_linux: The system cannot find the file specified.
    $ docker info
    Client:
    Debug Mode: false
    Server:
    ERROR: Error response from daemon: open \\.\pipe\docker_engine_linux: The system cannot find the file specifie d.
    errors pretty printing info

    Search for Error response from daemon, I found this issue same to mine

  • Solution: Restart docker via docker desktop, right click and choose ‘restart’.