Right now, I am trying to setup test-kitchen on CircleCI, but when it gets to the point that kitchen tries to ssh to the container that it has created and bootstrapped through
docker exec. The connection just hangs and the docker container that is trying to connect fails.
So I am having to use the old machine executor instead of docker.
You can see this behavior by using this config.yml and this repo.
version: 2.0 jobs: test: docker: image: gtmanfred/kitchen-salt:latest steps: - checkout - setup_remote_docker - run: name: Install Test Kitchen command: | bundle install - run: name: Setup Containers command: | bundle exec kitchen create all -l warn -c 4 bundle exec kitchen converge all - run: name: Verify Environments command: | bundle exec kitchen verify all - run: name: Cleanup Containers command: | bundle exec kitchen list all bundle exec kitchen destroy all workflows: version: 2 Test: jobs: - test
And this repository https://github.com/gtmanfred/wordpress-formula
What should happen is the kitchen-salt container should create the vm, install openssh, and then launch systemd, with the sshd daemon. Then the container should be able to ssh to the other container on the port forwarded to the host ip. But it looks like the iptables on the docker-engine host are blocking it.
Any help would be greatly appreciated.