Jenkins container running but not accessible via host











up vote
2
down vote

favorite
1












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



session



That did not work though: what would be the right URL to access Jenkins?










share|improve this question
























  • 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















up vote
2
down vote

favorite
1












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



session



That did not work though: what would be the right URL to access Jenkins?










share|improve this question
























  • 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













up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





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



session



That did not work though: what would be the right URL to access Jenkins?










share|improve this question















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



session



That did not work though: what would be the right URL to access Jenkins?







ubuntu jenkins






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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












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






share|improve this answer























  • 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













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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

























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






share|improve this answer























  • 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

















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






share|improve this answer























  • 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















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






share|improve this answer














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







share|improve this answer














share|improve this answer



share|improve this answer








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




















  • 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




















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

List item for chat from Array inside array React Native

Thiostrepton

Caerphilly