Docker container has no route to host The 2019 Stack Overflow Developer Survey Results Are...
Adding labels to a table: columns and rows
What tool would a Roman-age civilization have to grind silver and other metals into dust?
Why is Grand Jury testimony secret?
Why is my p-value correlated to difference between means in two sample tests?
How come people say “Would of”?
How to create dashed lines/arrows in Illustrator
How can I fix this gap between bookcases I made?
How to reverse every other sublist of a list?
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
How is radar separation assured between primary and secondary targets?
Pristine Bit Checking
Deadlock Graph and Interpretation, solution to avoid
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
Protecting Dualbooting Windows from dangerous code (like rm -rf)
Is this food a bread or a loaf?
What is the use of option -o in the useradd command?
What does "rabbited" mean/imply in this sentence?
Should I use my personal or workplace e-mail when registering to external websites for work purpose?
Limit the amount of RAM Mathematica may access?
Why do UK politicians seemingly ignore opinion polls on Brexit?
How to deal with fear of taking dependencies
A poker game description that does not feel gimmicky
What can other administrators access on my machine?
Is three citations per paragraph excessive for undergraduate research paper?
Docker container has no route to host
The 2019 Stack Overflow Developer Survey Results Are InDNAT forwarding for FTP: No route to hostiptables - Map port on the host to a port in a Docker containertelnet to an host/port works while no service on this host listening on this portiptables limit inbound connections to Docker containerLXC NAT forward host port to containerForwarding Docker container port from 8002 to 443 not workingDocker container hits iptables to proxyList IP tables in Docker ContainerIPTables blocking docker container internet access on CentOSDocker between-container iptables and fail2ban?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
If I stop the iptables service, things will work. I need to know how to change the iptables configuration to allow container access to host ports.
I have an nginx container on this RHEL 7 server accepting connections to port 443. On the same server, the jupyterhub is running on port 8000 without ssl. proxy_pass is used to open the jupyterhub from web browsers.
curl https://HOSTNAME
<html>
<head><title>502 Bad Gateway</title></head>
docker logs nginx-container
CLIENT-IP - - [08/Apr/2019:17:05:47 -0500] "GET / HTTP/1.1" 502 150 "-" "curl/7.29.0" "-"
2019/04/08 17:05:47 [error] 6#6: *11 connect() failed (113: No route to host) while connecting to upstream, client: CLIENT-IP, server: HOSTNAME, request: "GET / HTTP/1.1", upstream: "http://HOST-IP:8000/", host: "HOSTNAME"
Hope somebody can help me.
BTW, if I use non-docker nginx proxy, there is no problem at all.
Dalton
iptables
New contributor
add a comment |
If I stop the iptables service, things will work. I need to know how to change the iptables configuration to allow container access to host ports.
I have an nginx container on this RHEL 7 server accepting connections to port 443. On the same server, the jupyterhub is running on port 8000 without ssl. proxy_pass is used to open the jupyterhub from web browsers.
curl https://HOSTNAME
<html>
<head><title>502 Bad Gateway</title></head>
docker logs nginx-container
CLIENT-IP - - [08/Apr/2019:17:05:47 -0500] "GET / HTTP/1.1" 502 150 "-" "curl/7.29.0" "-"
2019/04/08 17:05:47 [error] 6#6: *11 connect() failed (113: No route to host) while connecting to upstream, client: CLIENT-IP, server: HOSTNAME, request: "GET / HTTP/1.1", upstream: "http://HOST-IP:8000/", host: "HOSTNAME"
Hope somebody can help me.
BTW, if I use non-docker nginx proxy, there is no problem at all.
Dalton
iptables
New contributor
add a comment |
If I stop the iptables service, things will work. I need to know how to change the iptables configuration to allow container access to host ports.
I have an nginx container on this RHEL 7 server accepting connections to port 443. On the same server, the jupyterhub is running on port 8000 without ssl. proxy_pass is used to open the jupyterhub from web browsers.
curl https://HOSTNAME
<html>
<head><title>502 Bad Gateway</title></head>
docker logs nginx-container
CLIENT-IP - - [08/Apr/2019:17:05:47 -0500] "GET / HTTP/1.1" 502 150 "-" "curl/7.29.0" "-"
2019/04/08 17:05:47 [error] 6#6: *11 connect() failed (113: No route to host) while connecting to upstream, client: CLIENT-IP, server: HOSTNAME, request: "GET / HTTP/1.1", upstream: "http://HOST-IP:8000/", host: "HOSTNAME"
Hope somebody can help me.
BTW, if I use non-docker nginx proxy, there is no problem at all.
Dalton
iptables
New contributor
If I stop the iptables service, things will work. I need to know how to change the iptables configuration to allow container access to host ports.
I have an nginx container on this RHEL 7 server accepting connections to port 443. On the same server, the jupyterhub is running on port 8000 without ssl. proxy_pass is used to open the jupyterhub from web browsers.
curl https://HOSTNAME
<html>
<head><title>502 Bad Gateway</title></head>
docker logs nginx-container
CLIENT-IP - - [08/Apr/2019:17:05:47 -0500] "GET / HTTP/1.1" 502 150 "-" "curl/7.29.0" "-"
2019/04/08 17:05:47 [error] 6#6: *11 connect() failed (113: No route to host) while connecting to upstream, client: CLIENT-IP, server: HOSTNAME, request: "GET / HTTP/1.1", upstream: "http://HOST-IP:8000/", host: "HOSTNAME"
Hope somebody can help me.
BTW, if I use non-docker nginx proxy, there is no problem at all.
Dalton
iptables
iptables
New contributor
New contributor
edited yesterday
Stephen Harris
27.4k35383
27.4k35383
New contributor
asked yesterday
Dalton ZhangDalton Zhang
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});
}
});
Dalton Zhang is a new contributor. Be nice, and check out our Code of Conduct.
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%2funix.stackexchange.com%2fquestions%2f511341%2fdocker-container-has-no-route-to-host%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
Dalton Zhang is a new contributor. Be nice, and check out our Code of Conduct.
Dalton Zhang is a new contributor. Be nice, and check out our Code of Conduct.
Dalton Zhang is a new contributor. Be nice, and check out our Code of Conduct.
Dalton Zhang is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f511341%2fdocker-container-has-no-route-to-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