How can I make a request coming from inside of a docker container appear to be coming from my local machine? How can I make a request coming from inside of a docker container appear to be coming from my local machine? docker docker

How can I make a request coming from inside of a docker container appear to be coming from my local machine?


Start container in the host OS network space with docker run --network host ... - container will be running in the network of your local machine directly. But you will lose container network isolation, so you should to review security of this approach.

Doc: https://docs.docker.com/network/host/