You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> from docker import Client
>>> cli = Client(base_url='tcp://127.0.0.1:2375')
>>> for line in cli.pull('busybox', stream=True):
... print(json.dumps(json.loads(line), indent=4))
will produce:
TypeError: the JSON object must be str, not 'bytes'
Maybe explicitly document such differences, e.g. by adding something like "Note: On Python 3 you need to decode line from bytes to str: json.loads(line.decode())"?