ContainerName

Allow the request if the container name respect the rules.

If you wish to use this module then we recommend to install the collar it will enrich docker API requests by replacing numeric ids by human readable names used in the ContainerName rules.

Containers name check is a list or regular expressions.

Example usage

policies.yml
---

- description: Allow action only if container names respect the rules.
  hosts:
    - +.*
  default: Allow
  policies:
    - members:
        - all
      rules:
        containers:
          ContainerName:
            - ^foo-
            - ^bar-
            - ^$USER-

...