I have container I can access at http://localhost:8080/
I want to access it at http://mydev:8080/
I have added 127.0.1.1 mydev
to /etc/hosts.
When I start the container with --publish 8080:8080
this works fine, but if I use --publish 127.0.0.1:8080:8080
it fails, but I would rather not bind to all interfaces. I have tried a number of things, but I’m probably missing something basic.
What do I need to do to make this work?