VisheshRaju
VisheshRaju

Reputation: 348

Unable to run docker project in localhost

I have installed a repo from docker and ran it using the following command,

 docker run -d --name searx -p $PORT:8888 wonderfall/searx

The container was also sucessfully created but while accessing it in my browser i get the following error,

 dail tcp[::1]:8888: connectex: No connection could be made because the target machine actively refused it.

Does anyone know why this error occurs? I use a windows10 system.

enter image description here

Upvotes: 1

Views: 732

Answers (1)

VonC
VonC

Reputation: 1325137

Just installed docker toolbox

That means you cannot use localhost directly without declaring in Virtual Box a port-forwarding rule.

First, test your service using the IP of your VM (see docker-machine ip default output)

http://<ip>:8888

Then, declare a port-forward rule:

Upvotes: 2

Related Questions