test-kitchen / kitchen-dokken

Test Kitchen driver/provisioner for lightning faster Chef Infra cookbook testing with Docker
Other
196 stars 91 forks source link

Documentation for using Inspec #77

Closed ghost closed 7 years ago

ghost commented 7 years ago

I wrote a simple inspec test, but it's running on the host, not the container. Not sure what I'm doing wrong. Any help would be appreciated. Serverspec however is running on the container.

someara commented 7 years ago

Inspec does indeed run on the host. That's by (inspec) design.

It connects to the container through the transport (docker exec).

You'll have problems doing things like checking for listening ports or whatever if you're mounting the local docker socket.

-s

On Mar 7, 2017, at 3:35 PM, Wes McNamee notifications@github.com wrote:

I wrote a simple inspec test, but it's running on the host, not the container. Not sure what I'm doing wrong. Any help would be appreciated. Serverspec however is running on the container.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.