for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Unable to do docker search 4.1.1 (69879)

Open Tus1688 opened this issue 5 years ago • 8 comments

  • [x] I have tried with the latest version of Docker Desktop
  • [x] I have tried disabling enabled experimental features
  • [x] I have uploaded Diagnostics
  • Diagnostics ID: A77B617F-FA65-4B25-90D0-FF3FBDBC1C23/20211103151113

Expected behavior

Able to do docker search <image name>

Actual behavior

Error response from daemon: Unexpected status code 401

Information

  • macOS Version: 12.0.1 (21A559)
  • Intel chip or Apple chip: Apple M1
  • Docker Desktop Version: 4.1.1 (69879)

Steps to reproduce the behavior

  1. Updating to Docker Desktop 4.1.1 (69879)
  2. Do docker search <image name>
  3. Get Error response from daemon: Unexpected status code 401
  4. I tried to pull docker pull <image name>
  5. It pulled successfully

Tus1688 avatar Nov 03 '21 23:11 Tus1688

i guess maybe you are docker-login. then this docker-login info need a "root auth " for searching private hub.

maybe working "sudo docker command".

you want not root-auth, then you should command "docker logout"

I am also looking for a way to not use the root authority while logging in with a docker.

heeda88 avatar Nov 04 '21 07:11 heeda88

i got the same problem. is there anyway to solve it?

only docker search got the problem, docker login/docker pull/docker push is ok.

Jared-ZDC avatar Nov 04 '21 14:11 Jared-ZDC

ok, while i logout, it is ok now

Jared-ZDC avatar Nov 04 '21 14:11 Jared-ZDC

why need i logout ? it is not friendly to me

Jared-ZDC avatar Nov 04 '21 15:11 Jared-ZDC

Same. 4.1.1 (69789) on M1. docker search works ok when logged out. When logged in, Error response from daemon: Unexpected status code 401

dmasiero avatar Nov 07 '21 02:11 dmasiero

Issue has went away after upgrading to 4.2.0, thanks.

Tus1688 avatar Nov 17 '21 06:11 Tus1688

why need i logout ? it is not friendly to me

your login-info is in root-auth directory. Then you never load login-info when you don't use sudo or root-user. Finally, yon don't give login-info to docker API. The API give to you that
Error response from daemon: Unexpected status code 401 Code 401 : Unauthorized

heeda88 avatar Nov 25 '21 00:11 heeda88

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Dec 25 '21 03:12 docker-robott