Port-forwarding other than 8080:80
does not work
#6986
Unanswered
toshohirasawa
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can successfully set port forwarding from 80 (container) to 8080 (host) but failed to use ports other than 8080 as the host port.
Once I set ports like
8081:80
, my Chrome says, "This site can’t be reached" when I accesshttp://localhost:8081/
.OS: macOS 14.4.1
Rancher Desktop: 1.13.1
Kubernetes: 1.29.4
Settings changed from default:
Here is the docker-compose.yml I used:
I'm not sure whether the Docker image or Rancher desktop caused the problem, and I don't know how to distinguish the cause.
Any advice will be appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions