Docker Community Forums

Share and learn in the Docker community.

Docker Connection Error "A connection attempt failed "

Hi Team,

I used Docker toolbox earlier,now i uninstalled and installed the new Docker Desktop version for my work. After installing the docker desktop and tries to run any docker commands am getting below error

when i run docker run -d -p 80:80 docker/getting-started
docker: error during connect: Post https://127.0.0.1:2376/v1.24/containers/create: dial tcp 127.0.0.1:2376: connectex: No connection could be made because the target machine actively refused it.

error during connect: Get https://127.0.0.1:2376/v1.24/version: dial tcp 127.0.0.1:2376: connectex: No connection could be made because the target machine actively refused it.

the above error is keep on coming, i googled all the portals i couldnt find any solution for it. Your help in resolving this issue will be much appreciated.