Jenkins container running but not accessible via host
up vote
2
down vote
favorite
I have installed jenkins on a VM and it is showing as up and running but not accessible via host.
Below is the command for running jenkins:
docker pull jenkins
docker run -p 9080:9080 -p 50000:50000 jenkins
I tried accessing via:
http://10.34.38.100:9080

That did not work though: what would be the right URL to access Jenkins?
ubuntu jenkins
add a comment |
up vote
2
down vote
favorite
I have installed jenkins on a VM and it is showing as up and running but not accessible via host.
Below is the command for running jenkins:
docker pull jenkins
docker run -p 9080:9080 -p 50000:50000 jenkins
I tried accessing via:
http://10.34.38.100:9080

That did not work though: what would be the right URL to access Jenkins?
ubuntu jenkins
jenkins is exposing 8080 so you have to map 8080 on your desired port 9080 (or 8080) like this: -p 9080:8080. After that you can check the answer of VonC
– lvthillo
Jan 17 at 6:33
thanks..this solved our issue...
– Tanya C
Jan 17 at 6:55
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have installed jenkins on a VM and it is showing as up and running but not accessible via host.
Below is the command for running jenkins:
docker pull jenkins
docker run -p 9080:9080 -p 50000:50000 jenkins
I tried accessing via:
http://10.34.38.100:9080

That did not work though: what would be the right URL to access Jenkins?
ubuntu jenkins
I have installed jenkins on a VM and it is showing as up and running but not accessible via host.
Below is the command for running jenkins:
docker pull jenkins
docker run -p 9080:9080 -p 50000:50000 jenkins
I tried accessing via:
http://10.34.38.100:9080

That did not work though: what would be the right URL to access Jenkins?
ubuntu jenkins
ubuntu jenkins
edited Jan 17 at 5:35
VonC
824k28425913120
824k28425913120
asked Jan 17 at 5:27
Tanya C
256
256
jenkins is exposing 8080 so you have to map 8080 on your desired port 9080 (or 8080) like this: -p 9080:8080. After that you can check the answer of VonC
– lvthillo
Jan 17 at 6:33
thanks..this solved our issue...
– Tanya C
Jan 17 at 6:55
add a comment |
jenkins is exposing 8080 so you have to map 8080 on your desired port 9080 (or 8080) like this: -p 9080:8080. After that you can check the answer of VonC
– lvthillo
Jan 17 at 6:33
thanks..this solved our issue...
– Tanya C
Jan 17 at 6:55
jenkins is exposing 8080 so you have to map 8080 on your desired port 9080 (or 8080) like this: -p 9080:8080. After that you can check the answer of VonC
– lvthillo
Jan 17 at 6:33
jenkins is exposing 8080 so you have to map 8080 on your desired port 9080 (or 8080) like this: -p 9080:8080. After that you can check the answer of VonC
– lvthillo
Jan 17 at 6:33
thanks..this solved our issue...
– Tanya C
Jan 17 at 6:55
thanks..this solved our issue...
– Tanya C
Jan 17 at 6:55
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
It depends on your VM (VMWare? VirtualBox) and host (the actual OS which has installed a VM)
IF you are using Docker for Windows, it would use the HyperV VM (Windows 10 only), and http://localhost:8080 would work.
Same idea with Docker for Mac, and its XHyve Hypervisor.
But with an actual VM, you might need to setup a port forwarding before being able to do http://localhost:8080, or to use the IP of the VM itself (for example docker-machine ip default 192.168.99.100).
And that supposes your Jenkins application publishes its port to the one you want, as commented by lvthillo: -p 9080:8080.
See docker run publish port.
Every Localhost having some IP address, So If you use docker in windows by Docker ToolBox at the Don't Check with Localhost:8080 in your browser why because that is not the actual host.Your Localhost running in Vmware so you can check your IP address by using this Command (docker-machine ip default)
For Example :
I got 192.168.99.100 - using this IP to run the Jenkins like 192.168.99.100:8080
Hi, I've installed it on Ubuntu in VMWare. Have selected Bridged adapter in port forwarding. Still, this is not connecting.
– Tanya C
Jan 17 at 6:46
@TanyaC is still not connecting using which IP address? (see superuser.com/a/571210/141) Or in the same page superuser.com/a/726147/141.
– VonC
Jan 17 at 6:58
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
It depends on your VM (VMWare? VirtualBox) and host (the actual OS which has installed a VM)
IF you are using Docker for Windows, it would use the HyperV VM (Windows 10 only), and http://localhost:8080 would work.
Same idea with Docker for Mac, and its XHyve Hypervisor.
But with an actual VM, you might need to setup a port forwarding before being able to do http://localhost:8080, or to use the IP of the VM itself (for example docker-machine ip default 192.168.99.100).
And that supposes your Jenkins application publishes its port to the one you want, as commented by lvthillo: -p 9080:8080.
See docker run publish port.
Every Localhost having some IP address, So If you use docker in windows by Docker ToolBox at the Don't Check with Localhost:8080 in your browser why because that is not the actual host.Your Localhost running in Vmware so you can check your IP address by using this Command (docker-machine ip default)
For Example :
I got 192.168.99.100 - using this IP to run the Jenkins like 192.168.99.100:8080
Hi, I've installed it on Ubuntu in VMWare. Have selected Bridged adapter in port forwarding. Still, this is not connecting.
– Tanya C
Jan 17 at 6:46
@TanyaC is still not connecting using which IP address? (see superuser.com/a/571210/141) Or in the same page superuser.com/a/726147/141.
– VonC
Jan 17 at 6:58
add a comment |
up vote
0
down vote
accepted
It depends on your VM (VMWare? VirtualBox) and host (the actual OS which has installed a VM)
IF you are using Docker for Windows, it would use the HyperV VM (Windows 10 only), and http://localhost:8080 would work.
Same idea with Docker for Mac, and its XHyve Hypervisor.
But with an actual VM, you might need to setup a port forwarding before being able to do http://localhost:8080, or to use the IP of the VM itself (for example docker-machine ip default 192.168.99.100).
And that supposes your Jenkins application publishes its port to the one you want, as commented by lvthillo: -p 9080:8080.
See docker run publish port.
Every Localhost having some IP address, So If you use docker in windows by Docker ToolBox at the Don't Check with Localhost:8080 in your browser why because that is not the actual host.Your Localhost running in Vmware so you can check your IP address by using this Command (docker-machine ip default)
For Example :
I got 192.168.99.100 - using this IP to run the Jenkins like 192.168.99.100:8080
Hi, I've installed it on Ubuntu in VMWare. Have selected Bridged adapter in port forwarding. Still, this is not connecting.
– Tanya C
Jan 17 at 6:46
@TanyaC is still not connecting using which IP address? (see superuser.com/a/571210/141) Or in the same page superuser.com/a/726147/141.
– VonC
Jan 17 at 6:58
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
It depends on your VM (VMWare? VirtualBox) and host (the actual OS which has installed a VM)
IF you are using Docker for Windows, it would use the HyperV VM (Windows 10 only), and http://localhost:8080 would work.
Same idea with Docker for Mac, and its XHyve Hypervisor.
But with an actual VM, you might need to setup a port forwarding before being able to do http://localhost:8080, or to use the IP of the VM itself (for example docker-machine ip default 192.168.99.100).
And that supposes your Jenkins application publishes its port to the one you want, as commented by lvthillo: -p 9080:8080.
See docker run publish port.
Every Localhost having some IP address, So If you use docker in windows by Docker ToolBox at the Don't Check with Localhost:8080 in your browser why because that is not the actual host.Your Localhost running in Vmware so you can check your IP address by using this Command (docker-machine ip default)
For Example :
I got 192.168.99.100 - using this IP to run the Jenkins like 192.168.99.100:8080
It depends on your VM (VMWare? VirtualBox) and host (the actual OS which has installed a VM)
IF you are using Docker for Windows, it would use the HyperV VM (Windows 10 only), and http://localhost:8080 would work.
Same idea with Docker for Mac, and its XHyve Hypervisor.
But with an actual VM, you might need to setup a port forwarding before being able to do http://localhost:8080, or to use the IP of the VM itself (for example docker-machine ip default 192.168.99.100).
And that supposes your Jenkins application publishes its port to the one you want, as commented by lvthillo: -p 9080:8080.
See docker run publish port.
Every Localhost having some IP address, So If you use docker in windows by Docker ToolBox at the Don't Check with Localhost:8080 in your browser why because that is not the actual host.Your Localhost running in Vmware so you can check your IP address by using this Command (docker-machine ip default)
For Example :
I got 192.168.99.100 - using this IP to run the Jenkins like 192.168.99.100:8080
edited Nov 11 at 16:17
HackPro
33
33
answered Jan 17 at 5:32
VonC
824k28425913120
824k28425913120
Hi, I've installed it on Ubuntu in VMWare. Have selected Bridged adapter in port forwarding. Still, this is not connecting.
– Tanya C
Jan 17 at 6:46
@TanyaC is still not connecting using which IP address? (see superuser.com/a/571210/141) Or in the same page superuser.com/a/726147/141.
– VonC
Jan 17 at 6:58
add a comment |
Hi, I've installed it on Ubuntu in VMWare. Have selected Bridged adapter in port forwarding. Still, this is not connecting.
– Tanya C
Jan 17 at 6:46
@TanyaC is still not connecting using which IP address? (see superuser.com/a/571210/141) Or in the same page superuser.com/a/726147/141.
– VonC
Jan 17 at 6:58
Hi, I've installed it on Ubuntu in VMWare. Have selected Bridged adapter in port forwarding. Still, this is not connecting.
– Tanya C
Jan 17 at 6:46
Hi, I've installed it on Ubuntu in VMWare. Have selected Bridged adapter in port forwarding. Still, this is not connecting.
– Tanya C
Jan 17 at 6:46
@TanyaC is still not connecting using which IP address? (see superuser.com/a/571210/141) Or in the same page superuser.com/a/726147/141.
– VonC
Jan 17 at 6:58
@TanyaC is still not connecting using which IP address? (see superuser.com/a/571210/141) Or in the same page superuser.com/a/726147/141.
– VonC
Jan 17 at 6:58
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f48294144%2fjenkins-container-running-but-not-accessible-via-host%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
jenkins is exposing 8080 so you have to map 8080 on your desired port 9080 (or 8080) like this: -p 9080:8080. After that you can check the answer of VonC
– lvthillo
Jan 17 at 6:33
thanks..this solved our issue...
– Tanya C
Jan 17 at 6:55