'Extract the host-namespace pid of the container pid 0'

def _get_container_pid(self, state, cid, tpl_var):

    pid = state.inspect_container(cid).get('State', {}).get('Pid')
    if (not pid):
        return None
    return str(pid)
