'Reads a set of pod uids and returns the set of docker
container ids they manage
podlist should be a recent self.retrieve_pods_list return value,
if not given that method will be called'

def match_containers_for_pods(self, pod_uids, podlist=None):

    cids = set()
    if ((not isinstance(pod_uids, set)) or (len(pod_uids) < 1)):
        return cids
    if (podlist is None):
        podlist = self.retrieve_pods_list()
    for pod in podlist.get('items', {}):
        uid = pod.get('metadata', {}).get('uid', None)
        if (uid in pod_uids):
            for container in pod.get('status', {}).get('containerStatuses', None):
                id = container.get('containerID', '')
                if id.startswith('docker://'):
                    cids.add(id[9:])
    return cids
