-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request to change port inside container #62
Comments
Why not use a different port, like |
Becasue docker's IPVLAN ignores ports |
Oh, I didn't know that. |
I usually just change the EXPOSE port in the Dockerfile and build it. https://www.mend.io/free-developer-tools/blog/docker-expose-port/ |
@codesterd I don't think that is enough. The software needs to listen on that port. |
As I am using IPVLAN Layer 3 in my docker setup, every microservice gets its own ip address. Therefore I don't need different ports. And docker doesn't support port rebinding in an ipvlan L3. So I want to change the given port 5000 to 80, so I dont have the local dns record of 192.168.10.5:5000 to snip.homelab:5000. Let me change it to 192.168.10.5:80 therefore just http://snip.box please
When I run the docker run command
docker run -d --network=home_lab --ip=192.168.10.5 --name=snippetbox --restart=always -v ~/docker/config:/config pawelmak/snippet-box:latest
it binds it to the port 5000, even I put--bind :80
or-p 80:80
to the command. How do I use it without port 5000The text was updated successfully, but these errors were encountered: