Skip to content

Instantly share code, notes, and snippets.

@mcandre
Created August 14, 2019 00:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcandre/651b578dfffdfa7db2af43cd7cb0097a to your computer and use it in GitHub Desktop.
Save mcandre/651b578dfffdfa7db2af43cd7cb0097a to your computer and use it in GitHub Desktop.
Docker: Spin up test HTTP server
$ 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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment