Converting to docker-py container logs method