airshipctl/pkg/container
Ruslan Aliev 09ffae277b Fix printing docker container logs
Currently, we observe non-readable artefacts in the beginning of each
log line from docker container because log stream prints logs in
multiplexed way and first 8 bytes is actually a header by default. This
patch fixes this issue by using TTY mode (in this case output data
is copied directly from the container output stream, no extra
multiplexing or headers)[1].

[1] https://godoc.org/github.com/docker/docker/client#Client.ContainerLogs

Change-Id: I26f1588936be736a124b9c77ed712ac4376f03a2
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-09-23 03:06:31 -05:00
..
container_docker_test.go Refactor of codebase addressing IDE errors 2020-04-14 15:55:04 -04:00
container_docker.go Fix printing docker container logs 2020-09-23 03:06:31 -05:00
container_test.go Added error handler for empty runtime entry 2020-04-24 15:34:27 -07:00
container.go Added error handler for empty runtime entry 2020-04-24 15:34:27 -07:00
errors.go Added error handler for empty runtime entry 2020-04-24 15:34:27 -07:00