-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interactive sessions hang #69
Comments
Just noticed this may be fixed in v.0.0.2 (from README change log)
|
Hey, you are absolutely right that v0.0.2 will fix this. v0.0.2 is currently masquerading as the I've just done a test of this with the following commands to confirm (taken roughly from the Readme but basically replicating your setup above) - note this is on an Ubuntu host: configure docker We must tell docker to listen to the
create adapters.yml cat > /home/vagrant/powerstrip-demo/adapters.yml <<EOF
version: 1
endpoints:
"POST /*/containers/create":
pre: [slowreq]
adapters:
slowreq: http://slowreq/slowreq-adapter
EOF start adapter sudo DOCKER_HOST="unix:///var/run/docker.real.sock" \
docker run -d --name powerstrip-slowreq \
--expose 80 \
clusterhq/powerstrip-slowreq:v0.0.1 start powerstrip sudo DOCKER_HOST="unix:///var/run/docker.real.sock" \
docker run -d --name powerstrip \
-v /var/run:/host-var-run \
-v /home/vagrant/powerstrip-demo/adapters.yml:/etc/powerstrip/adapters.yml \
--link powerstrip-slowreq:slowreq \
clusterhq/powerstrip:unix-socket run interactive container sudo docker run -it ubuntu:12.04 /bin/bash interactive session
The main change is that we are now binding on the unix-socket and making docker itself listen to I'm currently addressing a review for the unix-socket branch and will release v0.0.2 and update this issue when done :-) |
Your example works, however I would still like to be able to access powerstrip on port 2375, and when i add -p 2375:2375 or -p 0.0.0.0:2375:2375 I am still getting error. Start Docker on real.sock (i start docker on 2379 because I have swarm talking to powerstrip) things like registrator are now listening to docker.real.sock
Start powerstrip with host-var-run and port 2375
Since powerstrip 0.0.2 grabs /host-var-run/docker.sock and therefore can listen to
But when inpect the port is mapped but it cannot talk to powerstrip. In v0.0.1 i was able to expose port 2375 so swarm to connect to it. Is this intended behavior?
|
Referencing #56 here. This will be resolved for 0.0.2 by recommending the use of |
@wallnerryan So I've just pushed to the unix-socket branch (the candidate for v0.0.2) I've added a clear note to the Readme about using socat in order to proxy TCP traffic to the unix socket. This is how I've got the unix socket version of powerstrip working with swarm for example. The trouble with listening on a TCP socket from inside the powerstrip container is that attaching blows up (as in it does not echo stdout of the container). Even running socat from inside a container has the same problem. The updated Readme is here |
Reproduce:
Start powerstrip on 0.0.0.0:2375
In each case I need to kill the process on the client machine to recover from the freeze/hang.
If I access the docker daemon port using -H on these hosts, interactive sessions have no problem using the same commands.
The text was updated successfully, but these errors were encountered: