inspec/test
Adam Leff d4790f7f5a Ignore linked container names when parsing docker containers (#2134)
* Ignore linked container names when parsing docker containers

If a container is linked to another container, the normal `docker ps` output
does not include this information. However, when pulling the `.Names` field
with `docker ps --format`, the linked container is listed in the name. This
is confusing for users trying to use InSpec to audit a container.

This change strips any linked container names from the actual container name.

Signed-off-by: Adam Leff <adam@leff.co>

* Linked container names aren't guaranteed to be last depending on how they were linked

Signed-off-by: Adam Leff <adam@leff.co>
2017-09-13 08:16:53 -04:00
..
cookbooks/os_prepare Add support for XML files (#2107) 2017-08-31 09:56:14 +02:00
functional Add sensitive flag to resources to restrict logging output (#2017) 2017-08-25 16:21:49 -04:00
integration/default File Resource: add be_setgid, be_setuid, be_sticky matchers (#2104) 2017-09-03 20:43:13 +02:00
unit Ignore linked container names when parsing docker containers (#2134) 2017-09-13 08:16:53 -04:00
docker_run.rb travis experiment: lower docker concurrency 2016-08-10 12:52:21 +01:00
docker_test.rb Load all dependent libraries, even if include_context isn't called 2016-09-04 20:55:20 +02:00
helper.rb nginx resource: audit the nginx binary and how it was compiled (#1958) 2017-09-13 08:15:09 -04:00