Why can’t I connect to the Docker API after installing the CLI?

0
5
Asked By CuriousCat42 On

After using the "unigetui" method to install the Docker CLI through Chocolatey, I set up a few images. However, when I tried to run commands like "docker images" and "docker compose up -d" today, I encountered an error: 'failed to connect to the docker API at npipe://./pipe/docker_engine; check if the path is correct and if the daemon is running'. This is happening on my Windows 10 system. What could be the issue?

1 Answer

Answered By TechWhiz88 On

It sounds like you only installed the Docker CLI. The CLI on its own won't connect to anything unless you have the Docker daemon running. Make sure you have Docker Desktop installed and that it’s actually started. That's usually the reason for the connection error.

UserNotSure -

Everything was working fine until yesterday; I really don't know much about Docker.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.