Docker using localhost loopback

docker container using the lo interface from local machine

docker run --rm -ti --network=host nginx

--network=host create a connection between docker and the local machine network interfaces layer