-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Misleading error message for docker secret ls #4890
Labels
Comments
Thanks for reporting! This looks to be a regression that was introduced in moby/moby#46463. I opened a pull request with a fix; |
Closing as the fix has landed in moby/moby; it will be backported and make its way to releases over the coming weeks. |
We need to vendor it into the cli for this to be addressed |
Oh! I seem to have missed it was on the client side; good point. |
fixed in master through #4926 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When I execute
docker secret ls
instead ofsudo docker secret ls
(user not indocker
group) on a freshly set up Ubuntu 22.04 server, I get the following error message:All other error messages caused by missing
sudo
usually start withpermission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock:
. So I'm wondering, why that's not the case here.For completeness, the error message with
sudo docker secret ls
is more telling:Based on the error message I guess
docker secret ls
also tries to connect to the daemon, but fails.Reproduce
docker secret ls
sudo docker secret ls
Expected behavior
Consistent error message with other Docker commands?
docker version
Client: Docker Engine - Community Version: 25.0.3 API version: 1.44 Go version: go1.21.6 Git commit: 4debf41 Built: Tue Feb 6 21:13:09 2024 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 25.0.3 API version: 1.44 (minimum version 1.24) Go version: go1.21.6 Git commit: f417435 Built: Tue Feb 6 21:13:09 2024 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.28 GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
lsb_release -a
groups
The text was updated successfully, but these errors were encountered: