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
A random thought: HTTP headers are \r\n-terminated. Could it be that whatever is relaying the stdout stream over HTTP thinks it's writing HTTP headers and converting the newlines?
Description
Newlines in container stdout are converted to CRLF.
Example:
If I instead base64-encode the stdout, the conversion doesn't happen
The instance is a VZ instance (for Rosetta suppport), and was created like:
Version
tuure ~ $ colima version && limactl --version && qemu-img --version
colima version 0.7.5
git commit: 1588c06
runtime: docker
arch: aarch64
client: v27.3.0
server: v27.1.1
limactl version 0.23.2
qemu-img version 9.1.0
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers
Operating System
Output of
colima status
tuure ~ $ colima status
INFO[0000] colima is running using macOS Virtualization.Framework
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: virtiofs
INFO[0000] socket: unix:///Users/tuure/.colima/default/docker.sock
Reproduction Steps
docker run --rm -it ubuntu:24.04 sh -c 'echo "a\nb"' | xxd
Expected behaviour
Expected newlines not to get converted to CRLFs.
Additional context
The CRLFs can be observed coming from the docker daemon, i.e. they are not an artifact of the client:
Extract from socat dump showing the stdout request and initial response
And later the contents:
The text was updated successfully, but these errors were encountered: