Search code examples
dockersshtest-kitchen

Kitchen login failed :Could not resolve host name


I am using test-kitchen and created a centos docker image. my .kitchen.yml file looks like this enter image description here

I have performed kitchen createand kitchen converge command and then looked into the created files with kitchen list enter image description here

and I also have a docker image created when I used the kitchen create enter image description here now that I have everything I want to run the image and I am using kitchen login command and I am receiving following error

enter image description here Is this a correct procedure to login to a docker container? or am I doing anything wrong in the .kitchen.yml file?. Note: I have looked into various issues but nothing helped me so finally, I am asking it here.

EDIT: I have resolved the above issue and facing this new one enter image description here


Solution

  • I solved the issue it was a configuration problem. I've modified my docker file and everything up and working now