mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Update readme for usage via Docker (CFINSPEC-516) (#6329)
* DOCS: Update readme for usage via Docker (CFINSPEC-516) Signed-off-by: Sonu Saha <sonu.saha@progress.com> * DOCS: Explain updated readme (CFINSPEC-516) Signed-off-by: Sonu Saha <sonu.saha@progress.com> Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
parent
130c99c88f
commit
3532c41634
1 changed files with 8 additions and 0 deletions
|
@ -134,6 +134,14 @@ Finished in 0.04321 seconds (files took 0.54917 seconds to load)
|
|||
2 examples, 0 failures
|
||||
```
|
||||
|
||||
To scan the docker containers running on the host using the containerized InSpec, we need to bind-mount the Unix socket `/var/run/docker.sock` from the host machine to the InSpec Container.
|
||||
|
||||
```
|
||||
docker pull chef/inspec
|
||||
function inspec { docker run -it --rm -v $(pwd):/share -v /var/run/docker.sock:/var/run/docker.sock chef/inspec "$@"; }
|
||||
```
|
||||
`/var/run/docker.sock` is the Unix socket the Docker daemon listens on by default.
|
||||
|
||||
|
||||
### Install it from source
|
||||
|
||||
|
|
Loading…
Reference in a new issue