1

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

VisheshRaju
  • 348
  • 2
  • 4
  • 17
  • try `docker run -d --name searx -p 8888:8888 wonderfall/searx` and access using `localhost:8888` – Farhad Farahi Jan 08 '17 at 05:25
  • 1
    What is `docker ps -a` result? Created is not enough, it has to be Up and running. – YOU Jan 08 '17 at 05:26
  • @farhad I tried it but same error persists YOU -- yah all are running !! – VisheshRaju Jan 08 '17 at 05:31
  • Are you using VirtualBox or Hyper-V? (ie: docker toolbox, or docker for Windows?) – VonC Jan 08 '17 at 05:34
  • Nope i have not done any virtualization steps. Just installed docker toolbox and it defaultly installed oracle virtual box. Do i have to perform any virtualization steps ?? – VisheshRaju Jan 08 '17 at 06:07
  • use `ipconfig /all`, find out docker ip, access that ip instead of localhost. docker does not run natively on windows. – YOU Jan 08 '17 at 06:17

1 Answers1

2

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:

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Well u kind of gave me the aswer. I must not use localhost. I must place my ipaddress there. Thanks! – VisheshRaju Jan 08 '17 at 06:28
  • 1
    @user3649118 yes, but you could use `localhost:8888`, if you define a port-forwarding rule as I mention. – VonC Jan 08 '17 at 06:34