Docker Community Forums

Share and learn in the Docker community.

On windows 7 I am using Docker tool box and not able to ping jenkins running in container


(Sanjaykdas01) #1

Hello,

I have installed DockerToolbox.exe and running jenkins latest version. When ever I am pinging Jenkins from my browser, it is not connecting to jenkins server. I am also sure that jenkins is running on 8080 port of Docker.

I am using Windows 7.

The below is the url which I am following for complete docker and jenkins set up.


(Worp) #2

Pls provide your Dockerfile and/or docker-compose. Also give us some information about the systems you are running on (Linux native Docker? Docker for Mac? Windows native or Windows Toolbox?).

The way you asked your question is basically as if you were asking a mechanic “I left my car at home, but it doesn’t work. Can you tell me what’s wrong?”. The answer is obviously: “No, cause I don’t have any information about the car.”


(Sanjaykdas01) #3

Hello Sir/Madam,

I am Using “Docker Toolbox for Windows”.

I am using Windows 7.

The below is the url which I am following for complete docker and jenkins set up.

https://github.com/schoolofdevops/learn-jenkins


(Sanjaykdas01) #4

Hello worp,

I am using Windows Toolbox.
docker commands were:
1> $docker run -idt --name jenkins -v /var/run/docker.sock:/var/run/docker.sock -p 8080:8080 -p 50000:50000 schoolofdevops/jenkins
2> $docker start jenkins

Then hitting the ip:8080 on browser. Then not getting connection


(Worp) #5

Are you trying to go to localhost:8080 in your browser?

Since you’re running on Toolbox you’ll need to use the Docker Toolbox’s IP. Try running:

$ docker-machine ls
NAME            ACTIVE   DRIVER       STATE     URL                         SWARM   DOCKER        
ERRORS
default          -        virtualbox   Running   tcp://192.168.99.101:2376           v18.04.0-ce

Then go to http://192.168.99.101:8080 in your browser.
(Use whatever IP that “docker-machine ls” spills out on your computer)


(Sanjaykdas01) #6

Thanks Worp.

Now I am able to run jenkins on Docker.


(Worp) #7

Glad I was able to help! Enjoy Docker!