I have built an docker image with non-default ssh port. But when I try to use it for test kitchen,
kitchen conv is not able to enter into container because of wrong ssh port:
[kitchen::driver::docker command] BEGIN (sudo -E docker -H unix:///var/run/docker.sock port 780f25214dbd47412b90467ae3dfcbafca0fcb2fa99ba3f5282ddc5b245a1b89 22/tcp)
My .kitchen.yml is as following:
--- driver: name: docker provisioner: name: chef_solo platforms: - name: docker-rhel-6.8 driver: name: docker driver_config: image: rhel_test platform: rhel port: 2222 transport: name: ssh ssh_port: 2222 suites: - name: default driver: name: docker driver_config: forward: - 80 run_list: - recipe[test::default]
Any leads what can be done to use non-default ssh port using kitchen-docker? I have tried both options,
ssh_port , but no luck.
Thanks in advance!