$ ifconfig en0 | awk '/inet / { print $2 }'
192.168.1.224
$ docker run \
--rm \
-e host=192.168.1.224 \
-p 8080:80 \
izdock/httpd
$ curl http://192.168.1.224:8080/
Created
August 14, 2019 00:22
-
-
Save mcandre/651b578dfffdfa7db2af43cd7cb0097a to your computer and use it in GitHub Desktop.
Docker: Spin up test HTTP server
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment