Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The nerdctl pull will output logs through the standard error stream. #3395

Closed
cyxinda opened this issue Sep 2, 2024 · 1 comment · Fixed by #3773
Closed

The nerdctl pull will output logs through the standard error stream. #3395

cyxinda opened this issue Sep 2, 2024 · 1 comment · Fixed by #3773
Labels
bug Something isn't working

Comments

@cyxinda
Copy link

cyxinda commented Sep 2, 2024

Description

Even when no error occurs, the nerdctl pull someImage command will output the result logs through the standard error stream instead of the standard output stream . This can cause confusion.
If I call local nerdctl command by my golang code,I have to get logs through StderrPipe .

Steps to reproduce the issue

Describe the results you received and expected

I hope that if no error occurs, the nerdctl pull command can output logs through the standard output stream

What version of nerdctl are you using?

cyxinda@oldsix [~] ➜ nerdctl --version [16:29:56]
nerdctl version 2.0.0-rc.0

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

None

Host information

cyxinda@oldsix [~] ➜ nerdctl info [17:03:53]
Client:
Namespace: default
Debug Mode: false

Server:
Server Version: v2.0.0-rc.3
Storage Driver: overlayfs
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Log: fluentd journald json-file syslog
Storage: native overlayfs
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
rootless
Kernel Version: 6.8.0-41-generic
Operating System: Ubuntu 24.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 24
Total Memory: 46.96GiB
Name: oldsix
ID: ca3e7d2c-4de1-4e7f-8f44-791f0d59cd75

WARNING: AppArmor profile "nerdctl-default" is not loaded.
Use 'sudo nerdctl apparmor load' if you prefer to use AppArmor with rootless mode.
This warning is negligible if you do not intend to use AppArmor.
WARNING: No cpuset support
cyxinda@oldsix [~] ➜

@cyxinda cyxinda added the kind/unconfirmed-bug-claim Unconfirmed bug claim label Sep 2, 2024
@apostasie
Copy link
Contributor

apostasie commented Sep 2, 2024

Confirming that docker behavior is different.

docker rmi debian; docker pull debian >/dev/null
nerdctl rmi debian; nerdctl pull debian >/dev/null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants