Do I need to setup a Docker network to expose container to the Internet, and if so, how to do it?Webserver in docker container is not reachable via the internetWhy does a Docker container running a server expose port to the outside world even though said port is blocked by iptables?linux container bridge port forwarding?connecting to apache server in docker container (osx and docker-machine) FROM INTERNEThow to keep my docker container up running?Docker networking IPv6 exposedDocker networking setup that is private and proxiedReverse proxy nginx docker container and ELBTemporarily expose docker containerConnect to the internet and other containers from inside Docker containerLARADOCK (laravel) container and MAILCOW docker container conflicting
Could a US political party gain complete control over the government by removing checks & balances?
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?
Set-theoretical foundations of Mathematics with only bounded quantifiers
DOS, create pipe for stdin/stdout of command.com(or 4dos.com) in C or Batch?
What would happen to a modern skyscraper if it rains micro blackholes?
Can a German sentence have two subjects?
TGV timetables / schedules?
If Manufacturer spice model and Datasheet give different values which should I use?
How to add power-LED to my small amplifier?
Download, install and reboot computer at night if needed
Draw simple lines in Inkscape
What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?
How old can references or sources in a thesis be?
Why was the small council so happy for Tyrion to become the Master of Coin?
Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?
Schwarzchild Radius of the Universe
Japan - Plan around max visa duration
How can the DM most effectively choose 1 out of an odd number of players to be targeted by an attack or effect?
Patience, young "Padovan"
declaring a variable twice in IIFE
How does one intimidate enemies without having the capacity for violence?
whey we use polarized capacitor?
A Journey Through Space and Time
Do I need to setup a Docker network to expose container to the Internet, and if so, how to do it?
Webserver in docker container is not reachable via the internetWhy does a Docker container running a server expose port to the outside world even though said port is blocked by iptables?linux container bridge port forwarding?connecting to apache server in docker container (osx and docker-machine) FROM INTERNEThow to keep my docker container up running?Docker networking IPv6 exposedDocker networking setup that is private and proxiedReverse proxy nginx docker container and ELBTemporarily expose docker containerConnect to the internet and other containers from inside Docker containerLARADOCK (laravel) container and MAILCOW docker container conflicting
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Summary
I mounted a local Jenkins Build Server in a local Docker Container and exposed ports 8080 both from the host to the Jenkins container.
I want to test the integration of Jenkins with Azure DevOps so Jenkins is the build server for the project.
Docker
I simply used the official jenkins/jenkins Docker image from Docker Hub and ran it like so:
docker run -d -p 8080:8080 --name jenkins jenkins/jenkins
Container is reachable from localhost:8080
and responds well.
Windows 10 Pro
In Windows 10 Firewall I created two port rules:
- Inbound, TCP, Local Port: All, Remote Port: All
- Inbound, UDP, Local Port: All, Remote Port: All
Bell Fibe HomeHub 2000
I created a port forwarding for my IP address which the modem did assosciate to the correct computer where the Docker container is running.
Internet
When I try to access my [public ip address]:80
that I obtain by googling "what's my ip address", I hit this page.
Related SF Question
Webserver in Docker container is not reachable via the Internet
And I'm unsure as to how to proceed or even if it's necessary. I'm rather a software architect than a system admin, and I don't really understand the need of a Docker network if my ports forwarding is right.
docker port-forwarding windows-10
add a comment |
Summary
I mounted a local Jenkins Build Server in a local Docker Container and exposed ports 8080 both from the host to the Jenkins container.
I want to test the integration of Jenkins with Azure DevOps so Jenkins is the build server for the project.
Docker
I simply used the official jenkins/jenkins Docker image from Docker Hub and ran it like so:
docker run -d -p 8080:8080 --name jenkins jenkins/jenkins
Container is reachable from localhost:8080
and responds well.
Windows 10 Pro
In Windows 10 Firewall I created two port rules:
- Inbound, TCP, Local Port: All, Remote Port: All
- Inbound, UDP, Local Port: All, Remote Port: All
Bell Fibe HomeHub 2000
I created a port forwarding for my IP address which the modem did assosciate to the correct computer where the Docker container is running.
Internet
When I try to access my [public ip address]:80
that I obtain by googling "what's my ip address", I hit this page.
Related SF Question
Webserver in Docker container is not reachable via the Internet
And I'm unsure as to how to proceed or even if it's necessary. I'm rather a software architect than a system admin, and I don't really understand the need of a Docker network if my ports forwarding is right.
docker port-forwarding windows-10
Docker will do this itself. But your problem here is that "Docker for Windows" isn't, and isn't intended for production. Use Docker on a native Linux platform.
– Michael Hampton♦
Apr 4 at 14:43
1
1- You don't need to allow UDP in my opinion 2 - I would also authorize outbound 8080 in Windows firewall 3 - can you telnet localhost:8080 ?
– Notauser
Apr 4 at 18:32
add a comment |
Summary
I mounted a local Jenkins Build Server in a local Docker Container and exposed ports 8080 both from the host to the Jenkins container.
I want to test the integration of Jenkins with Azure DevOps so Jenkins is the build server for the project.
Docker
I simply used the official jenkins/jenkins Docker image from Docker Hub and ran it like so:
docker run -d -p 8080:8080 --name jenkins jenkins/jenkins
Container is reachable from localhost:8080
and responds well.
Windows 10 Pro
In Windows 10 Firewall I created two port rules:
- Inbound, TCP, Local Port: All, Remote Port: All
- Inbound, UDP, Local Port: All, Remote Port: All
Bell Fibe HomeHub 2000
I created a port forwarding for my IP address which the modem did assosciate to the correct computer where the Docker container is running.
Internet
When I try to access my [public ip address]:80
that I obtain by googling "what's my ip address", I hit this page.
Related SF Question
Webserver in Docker container is not reachable via the Internet
And I'm unsure as to how to proceed or even if it's necessary. I'm rather a software architect than a system admin, and I don't really understand the need of a Docker network if my ports forwarding is right.
docker port-forwarding windows-10
Summary
I mounted a local Jenkins Build Server in a local Docker Container and exposed ports 8080 both from the host to the Jenkins container.
I want to test the integration of Jenkins with Azure DevOps so Jenkins is the build server for the project.
Docker
I simply used the official jenkins/jenkins Docker image from Docker Hub and ran it like so:
docker run -d -p 8080:8080 --name jenkins jenkins/jenkins
Container is reachable from localhost:8080
and responds well.
Windows 10 Pro
In Windows 10 Firewall I created two port rules:
- Inbound, TCP, Local Port: All, Remote Port: All
- Inbound, UDP, Local Port: All, Remote Port: All
Bell Fibe HomeHub 2000
I created a port forwarding for my IP address which the modem did assosciate to the correct computer where the Docker container is running.
Internet
When I try to access my [public ip address]:80
that I obtain by googling "what's my ip address", I hit this page.
Related SF Question
Webserver in Docker container is not reachable via the Internet
And I'm unsure as to how to proceed or even if it's necessary. I'm rather a software architect than a system admin, and I don't really understand the need of a Docker network if my ports forwarding is right.
docker port-forwarding windows-10
docker port-forwarding windows-10
edited Apr 4 at 14:36
Will Marcouiller
asked Apr 4 at 13:43
Will MarcouillerWill Marcouiller
2002213
2002213
Docker will do this itself. But your problem here is that "Docker for Windows" isn't, and isn't intended for production. Use Docker on a native Linux platform.
– Michael Hampton♦
Apr 4 at 14:43
1
1- You don't need to allow UDP in my opinion 2 - I would also authorize outbound 8080 in Windows firewall 3 - can you telnet localhost:8080 ?
– Notauser
Apr 4 at 18:32
add a comment |
Docker will do this itself. But your problem here is that "Docker for Windows" isn't, and isn't intended for production. Use Docker on a native Linux platform.
– Michael Hampton♦
Apr 4 at 14:43
1
1- You don't need to allow UDP in my opinion 2 - I would also authorize outbound 8080 in Windows firewall 3 - can you telnet localhost:8080 ?
– Notauser
Apr 4 at 18:32
Docker will do this itself. But your problem here is that "Docker for Windows" isn't, and isn't intended for production. Use Docker on a native Linux platform.
– Michael Hampton♦
Apr 4 at 14:43
Docker will do this itself. But your problem here is that "Docker for Windows" isn't, and isn't intended for production. Use Docker on a native Linux platform.
– Michael Hampton♦
Apr 4 at 14:43
1
1
1- You don't need to allow UDP in my opinion 2 - I would also authorize outbound 8080 in Windows firewall 3 - can you telnet localhost:8080 ?
– Notauser
Apr 4 at 18:32
1- You don't need to allow UDP in my opinion 2 - I would also authorize outbound 8080 in Windows firewall 3 - can you telnet localhost:8080 ?
– Notauser
Apr 4 at 18:32
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
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',
autoActivateHeartbeat: false,
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
);
);
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%2fserverfault.com%2fquestions%2f961506%2fdo-i-need-to-setup-a-docker-network-to-expose-container-to-the-internet-and-if%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Server Fault!
- 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%2fserverfault.com%2fquestions%2f961506%2fdo-i-need-to-setup-a-docker-network-to-expose-container-to-the-internet-and-if%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
Docker will do this itself. But your problem here is that "Docker for Windows" isn't, and isn't intended for production. Use Docker on a native Linux platform.
– Michael Hampton♦
Apr 4 at 14:43
1
1- You don't need to allow UDP in my opinion 2 - I would also authorize outbound 8080 in Windows firewall 3 - can you telnet localhost:8080 ?
– Notauser
Apr 4 at 18:32