Use this to run a container that opens a TCP socket on port 80 and echoes everything to the log.
210
Example:
> docker run -d -p 8080:80 johngrimes/tcp-echo
7844d50a63689bf84ef48af0ab4606c640f9bd072523f054c431818fae71e7e8
> curl http://localhost:8080/something
^C
> docker logs 7844d50a63689bf84ef48af0ab4606c640f9bd072523f054c431818fae71e7e8
Listening on port 80...
GET /something HTTP/1.1
Host: localhost:8080
User-Agent: curl/7.54.0
Accept: */*
Content type
Image
Digest
Size
86.9 MB
Last updated
almost 9 years ago
docker pull johngrimes/tcp-echo