inspec/test/unit/mock
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
..
cmd Ignore linked container names when parsing docker containers (#2134) 2017-09-13 08:16:53 -04:00
files etc_fstab resource: test contents of the /etc/fstab file (#2064) 2017-09-11 15:55:03 +02:00
profiles Source reader should not hand back files with nil contents (#2003) 2017-07-11 21:33:55 +02:00