Inspec Executable

From Bonus Bits
Jump to: navigation, search

Description

This article gives common commands used with the testing framework Inspec from Chef.


Run Tests

To run your Inspec integration tests in the current folder do the following.

inspec check .


Detect Container OS Info

To detect a running Docker container operating system information we can use the detect command.

inspec detect docker://<Container ID>

Example

  1. List running containers
    docker ps
    
  2. Detect OS info
    inspec detect -t docker://904d03e07099
    


formatted text
cat /var/log/messages

Icon-Tip-Square-Green.png
Gnome-sticky-notes-applet


Related Articles


Sources