Add use_internal_docker_network feature#283
Add use_internal_docker_network feature#283AaronKalair wants to merge 1 commit intotest-kitchen:masterfrom
Conversation
kitchen-docker from inside a Docker container. If set switches the SSH port to 22 and the hostname to the IP of the container so you can SSH into the container from within another Docker container
|
This looks like a good fix for #215. Can we get this merged? |
|
@AaronKalair I have noticed that on some platforms I'll get the following: Simple fix was to just modify things slightly: |
|
Would be great to get a fix to this problem merged. There is another PR attempting to deal with this problem - #203 Without this fix, 'docker-in-docker' CI is not possible which is a shame as it would be an ideal solution for ansible CI. |
|
We really need this, to allow a flawless CI pipeline. This issue #215 has been opened 18 months ago :-( |
|
Same boat here, this PR would help our unit testing automation! |
|
It would be great to get this merged, having CI build and test our chef-config inside docker would be amazing. Please let us know what can be done to help get this into master. |
|
Any updates on this? It would greatly simplify our CI builds. Happy to help on getting this pushed through. |
|
I would also like to see this |
|
I ended up forking the edited code, cloning it locally and building my own Gem. If I have time this week, I'll try to fix the Travis tests so we can get this merged back into master. |
|
At the end of the Travis output I see these errors: See this issue moby/moby#18113 for details. It seems like some versions of docker can get in a bad state? A work around for the failing build might be to delete /var/lib/docker/network/files/local-kv.db. |
|
I forked this PR into |
|
This same functionality has been merged in #304. |
Hello,
I've been trying to use kitchen-docker from within another Docker container but by default it tries to SSH into localhost and use the mapped port which doesn't work from within a Docker container.
This patch adds an option called
use_internal_docker_networkwhich if set to true switches the port to 22 rather than the port that its mapped to on the host, and uses the IP of the container rather than localhost, enabling kitchen-docker to SSH into the container and run chef from within another Docker container.