- start app on local machine running on port 8081
Windows/Mac OS
- in a separate terminal window, start container:
docker run -it alpine:latest shLinux: - in a separate terminal window, start container:
docker run -it --network="host" alpine:latest sh
Windows/Mac OS
- in the docker container, fetch the page, using
host.docker.internalas the domain name:wget http://host.docker.internal:8081/Linux (host):