inspec/lib
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
..
bundles Remove any "All Rights Reserved" references (#1969) 2017-06-28 04:14:19 -07:00
fetchers Don't send HTTP headers that have nil values (#1948) 2017-06-21 19:09:13 -05:00
inspec Bump version to 1.37.1 by Chef Expeditor 2017-09-13 12:15:15 +00:00
matchers New 'be_in' matcher for matching against values in a list (#2022) 2017-08-07 16:05:22 +02:00
resources Ignore linked container names when parsing docker containers (#2134) 2017-09-13 08:16:53 -04:00
source_readers Source reader should not hand back files with nil contents (#2003) 2017-07-11 21:33:55 +02:00
utils Fix issue when xinetd.conf does not end in newline (#2040) 2017-08-02 15:29:26 +02:00
inspec.rb Remove any "All Rights Reserved" references (#1969) 2017-06-28 04:14:19 -07:00