test-kitchen / kitchen-docker

A Test Kitchen Driver for Docker
Apache License 2.0
462 stars 232 forks source link

Can't use cluster swarm with kitchen-docker #197

Open sitle opened 8 years ago

sitle commented 8 years ago

Im not sure if it's a bug or not, this is what I have when i use kitchen-docker with a docker-swarm cluster :

Successfully built a1ab400bbcc4
44eb605e4b9f2b576164766c581a292f28a7f89e47928e03e3310639b058b355
10.0.0.195:32774
Waiting for SSH service on 10.0.0.150:32774, retrying in 3 seconds
Waiting for SSH service on 10.0.0.150:32774, retrying in 3 seconds
Waiting for SSH service on 10.0.0.150:32774, retrying in 3 seconds
Waiting for SSH service on 10.0.0.150:32774, retrying in 3 seconds

Any clue or workaround with this ?

thx for your help.

coderanger commented 8 years ago

kitchen-docker assumes that the IP we talked to Docker at is also where you should SSH to (with the random mapped port). To fix this we would need to parse the output to get the IP to connect to. I don't have a Docker Swarm setup to test with but if you can paste the raw docker run output I can try and write the parser logic.

thunder-spb commented 5 years ago

Any updates here? :)