'Get container state'

def container_state(self):

    client = self.get_client()
    try:
        info = client.inspect_container(self.container_id)
        return info.get('State', {})
    except DockerAPIError:
        return None
