V
V
Vladimir Golubev2017-03-08 22:41:14
Docker
Vladimir Golubev, 2017-03-08 22:41:14

Can docker be configured to intercept a request to a specific url in the browser when starting a container?

I can set it to listen on a local port, but the default browser won't knock on the local port unless there is a hosts entry.
I would like to deploy the development environment completely through docker, with the ability to configure WITHOUT editing hosts, so that after starting the container with nginx configured on somesite.com, access to this URL in the browser is redirected to localhost.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-03-09
@sim3x

If you don't want to edit hosts - set local dns and redirect in it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question