Unable to establish the connection

Hi everyone,
Iam facing the issue like below if i give any command EX:docker images.
An error occurred trying to connect: Get http://127.0.0.1:2375/v1.22/images/json: dial tcp 127.0.0.1:2375: connectex: No connection could be made because the target machine actively refused it.
I’m using PC. Can any one help me over here.
Thank you in advance,
Regards,
raju.

It sounds like the Docker client cannot connect to the Docker daemon. One thing that looks out of place is port 2375; 2376 is the default for Windows. This is a Windows install, correct?

Can you verify that the Docker VM is still running in Virtual Box? If you get anything other than Running, you should restart the machine.

docker-machine status default

To restart the machine:

docker-machine stop default
docker-machine start default

Then make sure your environment is set correctly, check to see if Docker is responding correctly.

docker-machine env
docker info