Skip to content

[LOGS]: nerdctl logs -f adds extraneous line feed #4201

@apostasie

Description

@apostasie

Description

logs -f adds a trailing 0a compared with docker.

Steps to reproduce the issue

docker rm -f foo >/dev/null
docker run --name foo debian printf 'bar\nfoo' >/dev/null
docker logs -f foo | hexdump

vs.

nerdctl rm -f foo >/dev/null
nerdctl run --name foo debian printf 'bar\nfoo' >/dev/null
nerdctl logs -f foo | hexdump

Describe the results you received and expected

0000000 6162 0a72 6f66 006f

vs

0000000 6162 0a72 6f66 0a6f

What version of nerdctl are you using?

main

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions