mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-28 06:35:24 +00:00
Comment on log streaming for docker ce 17 and 18
This commit is contained in:
@@ -35,8 +35,8 @@ def run(image: str = None, command: str = None, volumes: dict = None,
|
||||
line = ""
|
||||
while True:
|
||||
try:
|
||||
# TODO: figure out why..
|
||||
# Apparently the stream can be bytes or strings.
|
||||
# Make log streaming work for docker ce 17 and 18.
|
||||
# For some reason strings are returned instead if bytes.
|
||||
data = next(stream)
|
||||
if isinstance(data, bytes):
|
||||
line += data.decode()
|
||||
|
Reference in New Issue
Block a user