'A log stream can only be attached if the container uses a json-file
log driver.'

def attach_log_stream(self):

    if self.has_api_logs:
        self.log_stream = self.attach(stdout=True, stderr=True, stream=True)
