I have a squid proxy running in a docker container, started like this:
docker run --privileged -d --publish=3128:3128 --name foo squid
I want to get some information from it, from another container called bar
.
docker run --rm -it --name bar ubuntu:trusty bash
If I run this in the bar
container:
nc 172.17.0.1 3128
HEAD /
Then I get some output from the server. But if I run this:
echo 'HEAD /' | nc 172.17.0.1 3128
I get nothing. Why not?