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

Can't sign in to Docker Desktop #7160

Closed
jrnorth opened this issue Feb 1, 2024 · 69 comments
Closed

Can't sign in to Docker Desktop #7160

jrnorth opened this issue Feb 1, 2024 · 69 comments

Comments

@jrnorth
Copy link

jrnorth commented Feb 1, 2024

Description

I click the Sign in button in Docker Desktop, and my browser opens the desktop redirect link. I log into my account, and the page says it is redirecting me to the desktop app, but nothing happens, and Docker Desktop does not indicate that I am now signed in. I've tried clicking the Proceed to Docker Desktop button, too, but that does not work, either.

Reproduce

  1. Click Sign in
  2. Log into your account in the opened browser window
  3. Not redirected to Docker Desktop and not logged into Docker Desktop

Expected behavior

No response

docker version

Client:
 Cloud integration: v1.0.35+desktop.10
 Version:           25.0.2
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        29cf629
 Built:             Thu Feb  1 00:18:45 2024
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.27.1 (136059)
 Engine:
  Version:          25.0.2
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       fce6e0c
  Built:            Thu Feb  1 00:23:21 2024
  OS/Arch:          linux/arm64
  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

Client:
 Version:    25.0.2
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.12.1-desktop.4
    Path:     /Users/joe/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.24.3-desktop.1
    Path:     /Users/joe/.docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container. (Docker Inc.)
    Version:  0.0.22
    Path:     /Users/joe/.docker/cli-plugins/docker-debug
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     /Users/joe/.docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.21
    Path:     /Users/joe/.docker/cli-plugins/docker-extension
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.4
    Path:     /Users/joe/.docker/cli-plugins/docker-feedback
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.0.0
    Path:     /Users/joe/.docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /Users/joe/.docker/cli-plugins/docker-sbom
  scout: Docker Scout (Docker Inc.)
    Version:  v1.3.0
    Path:     /Users/joe/.docker/cli-plugins/docker-scout
WARNING: Plugin "/Users/joe/.docker/cli-plugins/docker-scan" is not valid: failed to fetch metadata: fork/exec /Users/joe/.docker/cli-plugins/docker-scan: no such file or directory

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 315
 Server Version: 25.0.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
  cgroupns
 Kernel Version: 6.6.12-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 8
 Total Memory: 15.6GiB
 Name: docker-desktop
 ID: a8a0d46b-2027-46b3-8395-bbc63933312d
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: daemon is not using the default seccomp profile

Diagnostics ID

4BA00B44-3ABD-4F0A-B1AD-081C38AB5075/20240201175120

Additional Info

Browser: Chrome 121.0.6167.139
OS: Ventura 13.6.4

@janklan
Copy link

janklan commented Feb 2, 2024

I've had this for a long time. Chrome Console shows these errors when I click "Proceed to Docker Desktop"

image

@MihaelaStoica
Copy link

We are investigating an issue with the dashboard not being refreshed properly. Could you please try closing the dashboard (just the window, not the entire app) and open it again, see if you are either already signed in, or sign in works this time?

@jrnorth
Copy link
Author

jrnorth commented Feb 2, 2024

@MihaelaStoica That worked. I closed the window then reopened it, and it is showing me as logged in.

@janklan
Copy link

janklan commented Feb 2, 2024

Not for me.

@matthewberryman
Copy link

Nor for me

@janklan
Copy link

janklan commented Feb 4, 2024

I have not restarted since my last message, but when I opened the dashboard window today, it showed me being signed in. I haven't touched my computer since Friday.

FYI Docker Desktop has been signing me out ever since I had it first installed, so I just stayed signed out as I didn't care. Now that you introduced the "Synchronized file shares" that sorted out my Symfony/Mac performance issues but/and placed the feature behind a Pro subscription paywall, I finally had to sign up, and because it appears I have to be signed in to work with the Pro features, now the problem started bugging me.

Anyone else has been repeatedly automatically signed out for no reason over the past N years?

@matthewberryman
Copy link

Anyone else has been repeatedly automatically signed out for no reason over the past N years?

Yep, there was a long-standing bug, only recently fixed, but seems broken again - and now I can't even sign back in.

#6993
#6483

@MihaelaStoica
Copy link

@janklan, @matthewberryman could you please upload a diagnostic (and let us know the diagnostic ID) after you experienced the issue of not being able to sign in?

@janklan
Copy link

janklan commented Feb 5, 2024

All I had to do was to quit Docker Desktop (the lot, not just the window) and after re-opening, I'm signed out. The diagnostic ID for the submission before I touched anything is 747DE4FE-0C9A-418E-9191-C60F28AAA629/20240205091949.

The one right after clicking the Proceed to Docker Desktop button has ID 747DE4FE-0C9A-418E-9191-C60F28AAA629/20240205092347

I can see logs along the line of:

2024-02-05 19:52:59.573531+1030  localhost com.docker.backend[10511]: (256ade43) 2832ab19-BackendAPI S<-C fc2a05c0-URLSchemeHandlerCMD
2024-02-05 19:52:59.573670+1030  localhost com.docker.backend[10511]: (256ade43) 2832ab19-BackendAPI S<-C fc2a05c0-URLSchemeHandlerCMD POST /registry/complete-login
2024-02-05 19:52:59.573762+1030  localhost com.docker.backend[10511]: (256ade43) 2832ab19-BackendAPI S<-C fc2a05c0-URLSchemeHandlerCMD bind: {"Url":"docker-desktop://auth0/complete-login?code=xxxstate=xxx"}
2024-02-05 19:52:59.573798+1030  localhost com.docker.backend[10511]: login request received with auth0 callback url: docker-desktop://auth0/complete-login?code=xxx&state=xxx
2024-02-05 19:52:59.573840+1030  localhost com.docker.backend[10511]: (256ade43) 2832ab19-BackendAPI S->C fc2a05c0-URLSchemeHandlerCMD POST /registry/complete-login (166.666µs): OK
2024-02-05 19:52:59.573897+1030  localhost com.docker.backend[10511]: (256ade43) 2832ab19-BackendAPI S->C fc2a05c0-URLSchemeHandlerCMD   (468.75µs): OK
2024-02-05 19:52:59.574606+1030  localhost com.docker.backend[10511]: (AE) [com.apple.appleevents:main]         AEGetParamDesc for keyword errn type ****
2024-02-05 19:52:59.574664+1030  localhost com.docker.backend[10511]: (AE) [com.apple.appleevents:main]         OSErr AEGetParamDesc(const AppleEvent *, AEKeyword, DescType, AEDesc *)(errn) as **** = <private> err=-1704/errAENotAEDesc
2024-02-05 19:52:59.574692+1030  localhost com.docker.backend[10511]: (AE) [com.apple.appleevents:main] try[appHandler] returned 0

I also noticed that upon closing the app window, I'm unable to start Docker again - there is no app icon in the bar at the top, starting the app does nothing. Several Docker processes are running, though:

janklan          10521   0.0  0.1 409847776  39536   ??  S     7:48pm   0:00.06 com.docker.build
janklan          10520   0.0  0.0 409766288  14560   ??  S     7:48pm   0:00.01 com.docker.dev-envs -watchdog
janklan          10519   0.0  0.1 409276816  38384   ??  S     7:48pm   0:00.06 docker serve --address unix:///Users/janklan/.docker/run/docker-cli-api.sock
janklan          10518   0.0  0.0 409974448  30160   ??  S     7:48pm   0:00.07 com.docker.extensions -address /Users/janklan/Library/Containers/com.docker.docker/Data/extension-manager.sock -watchdog
janklan          10511   0.0  1.2 412107104 826336   ??  S     7:48pm   0:15.62 /Applications/Docker.app/Contents/MacOS/com.docker.backend

If there is any way to submit the diagnostics data from the terminal, I'm happy to do so.

@MihaelaStoica
Copy link

@janklan I had a look at your diagnostic, and I think your app showing as signed out is the issue that we have identified internally and for which we have a fix in progress:

  • If you have the Open Docker Dashboard when Docker Desktop starts disabled, due to an existing bug, Docker Desktop still opens the dashboard when it starts. But this dashboard is in an inconsistent state and it shows that the user is not logged in, when if fact they are. In this situation, if you close and reopen the dashboard, it will correctly show as logged in.

For the second issue,

upon closing the app window, I'm unable to start Docker again - there is no app icon in the bar at the top, starting the app does nothing.

if you can reproduce it again, there is a way to upload a diagnostic from the terminal, see instructions here.

@matthewberryman
Copy link

@janklan, @matthewberryman could you please upload a diagnostic (and let us know the diagnostic ID) after you experienced the issue of not being able to sign in?

Couldn't repro this morning, will upload if it happens again.

@dumbledad
Copy link

dumbledad commented Feb 7, 2024

I have the same issue on an M1 MacBook Pro running Sonoma 14.3 and Docker Desktop now at 4.27.1. I have tried using Edge, Chrome, and Firefox and none work. You already have my log ID from email, it is 2BCADE1E-E1EE-4849-884A-E79B74E792C1/20240206083623

The strange thing is that the issue goes away when there's an update to Docker Desktop but then comes back after a few days or so.

@MihaelaStoica I have Docker Desktop set up to start and open when I log on so, for me at least, this is not related to #7157

@dumbledad
Copy link

The update to 4.27.2 fixed this for me, but I have had that before, where an update fixes the bug for a while and then it comes back. I'll keep you posted

@MihaelaStoica
Copy link

In 4.27.2 we fixed some issues with the dashboard, including the one I mentioned in my previous comment. But there might be other sign-in issues, so we'll keep this ticket open for now.

@dumbledad
Copy link

It's stopped working for me again, after restarting my laptop

@dumbledad
Copy link

dumbledad commented Feb 12, 2024

@MihaelaStoica

It's probably the same as the previous recording, but I tried again and here's the log ID: 2BCADE1E-E1EE-4849-884A-E79B74E792C1/20240212081751

The browser developer console reports redirect:1 Launched external handler for 'docker-desktop://auth0/complete-login?code=<guid>&state=<key>' (I've redacted the GUID and the key).

@janklan
Copy link

janklan commented Feb 28, 2024

I restarted my computer and now I'm logged out again. All was fine before the restart. No idea if this should go into another ticket. I thought I'd let you know. Docker Desktop clearly has some authentication issues.

@bsousaa
Copy link
Contributor

bsousaa commented Mar 7, 2024

@janklan is it reproducible? Please keep in mind sharing diagnostics id's to help us troubleshoot

@jpbriend
Copy link

if anybody faces these authentication issues, please generate a diagnostic in Docker Desktop and share the ID here.
It helps us a lot to investigate these issues.

@evanscho
Copy link

Same login redirect not working from any browser issue. Diagnostic ID: 5F66A882-C487-416A-98C3-8F3CDFC2634C/20240327052910

@evanscho
Copy link

For others with this issue, an interim solution is to log in from the command line:
docker login --username=bobgreen

@jpbriend
Copy link

@evanscho thank you for the diagnostic.
When you can not log in, does the command open docker-desktop://extensions/marketplace works? (it is supposed to open the Marketplace page in the Docker Desktop UI).

If it does not work, would you mind sharing with me the content of your lsregister?
You can obtain it with the command /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump >~/LSregister.txt and then share the ~/LSregister.txt file.

I suspect the custom URL scheme docker-desktop:// used to complete the login after a successful authentication is not working on some workstations. The LaunchServices content (lsregister) will tell me if the docker-desktop URL scheme is correctly registered with the Docker Desktop application.

@janklan
Copy link

janklan commented Apr 29, 2024

Not sure if it's relevant, but today my computer woke up to this

image

There is no other "admin" on my machine, it's not enrolled by MDM and my Docker subscription is a single seated Pro version.

@jpbriend
Copy link

@janklan does a restart of Docker Desktop produces the same behavior?

It looks like one of our capabilities to enforce Sign-In: https://docs.docker.com/security/for-admins/configure-sign-in/

Can you have look on your filesystem to check if the file /Library/Application Support/com.docker.docker/registry.json is present? If it's present, you can delete it and restart Docker Desktop.

By the way: a fix for the autoreconnect has been implemented, it should be available in the next release (4.30.0).

@janklan
Copy link

janklan commented Apr 30, 2024

@janklan does a restart of Docker Desktop produces the same behavior?

No, it appears like a one-off event. I'm not sure how to reproduce it.

Can you have look on your filesystem to check if the file /Library/Application Support/com.docker.docker/registry.json is present? If it's present, you can delete it and restart Docker Desktop.

It's not there.

@lonely-lockley
Copy link

lonely-lockley commented May 6, 2024

Can't login too. Docker desktop says credentials are wrong, but I could login to website with no problem. Can't push images, but pulling works.

@Youjin1985
Copy link

Keeps logging me out after updating to last version. This is really extremelly annoying. For bugs like those you should be severely punished by company management.

@ahmadharminto
Copy link

After upgrading to docker desktop 4.30 on M1 chip, I can't login. Click the signin button on app, redirected to browser, input credentials, success, redirected back to app, then redirected again to browser again -> logged out
image

@jpbriend
Copy link

jpbriend commented May 21, 2024

@ahmadharminto does your company enforces SignIn with a company account?
Would you mind testing the SignIn capability with docker login command and telling me if you get an error message?

Can you also generate a Diagnostic and share the ID?

@ahmadharminto
Copy link

@jpbriend here we go
A0F2004D-5400-4B6C-9A44-4DE314E0AD29/20240521121409

it works fine on my mac mini M1 with docker desktop 4.30, but not on my macbook M1 pro. it's weird. I also cleanup some old PAT's on hub.docker.com

@jpbriend
Copy link

jpbriend commented May 21, 2024

@ahmadharminto Thank you for the diagnostic.

Here is the error related to your login issue:
Post "https://hub.docker.com/v2/access-tokens/desktop-generate": tls: failed to verify certificate: x509: “*.docker.com” certificate is not standards compliant

Is it possible your network (probably your corporate network) has SSL termination? (often SSL termination in the middle of network communication is done by a network equipment in order to inspect all traffic, including SSL traffic)

This command can show you the certificate of hub.docker.com seen from your laptop:
openssl s_client -showcerts -servername hub.docker.com -connect hub.docker.com:443 </dev/null
Can you share the output with me? (can be a private message if you want to keep some information private)

Is the mac mini using the same network as the laptop (ex: laptop using a VPN while mini not using it)?

@ahmadharminto
Copy link

@jpbriend Thank you for your explanation. Both are using the same network (wifi), but to be honest I'm not sure about the SSL termination things. After I was redirected to the logout page, if I go to the my docker profile the session is still active (I'm not logged out). But if I click sign in again from docker desktop, it will go to the login page again on browser.

@jpbriend
Copy link

@ahmadharminto can you create a new for-mac issue so we can keep working on your problem in a dedicated issue?

@ahmadharminto
Copy link

@jpbriend It seems like there is a problem with my OS, because there are other applications that can't sync (connect online). In the end I restored my MacBook from TimeMachine backup of Mac Mini, and I was able to log in again to Docker Desktop 4.30. Thank you for your assistance!

@jpbriend
Copy link

@janklan your issue should be resolved with the latest release of Docker Desktop. The bug in the re-connection on startup should be solved. Feel free to open a dedicated issue if something goes wrong again.

@jmanhype
Copy link

still not working as of 4.31

@jmanhype
Copy link

found out the error if you created an account using the sign up form even if its gmail. you cant login with the gmail button must use the sign up form and then it will log you in if you try to use the gmail button even though its gmail doesnt matter depends on how you orginally signed up

@MihaelaStoica
Copy link

MihaelaStoica commented Jun 25, 2024

found out the error if you created an account using the sign up form even if its gmail. you cant login with the gmail button must use the sign up form and then it will log you in if you try to use the gmail button even though its gmail doesnt matter depends on how you orginally signed up

@jmanhype, I am not sure I understand the behaviour you're describing. If you successfully complete the sign up process with a gmail address, then, when you later try to sign in from Docker Desktop, doing this through the gmail button should work, because we always match on the email address.

Worth mentioning though, that if you create an account (using the sign up form) with a gmail address, then you need to verify the email before being able to login via "Continue with Google" button. The verification can be done either via the verification email that Docker sends, or by logging in with email+password once.

@Chang-huilin
Copy link

I solved this problem by adding proxies (adding both http and https).

@timmeade
Copy link

timmeade commented Jul 3, 2024

Ihave this issue now

@timmeade
Copy link

timmeade commented Jul 3, 2024

i have this problem now

@timmeade
Copy link

timmeade commented Jul 3, 2024

i have this problem now

i restarted docker. Then said login and it did. But it appeared the redirect still did not worked. but i am logged in

@jpbriend
Copy link

jpbriend commented Jul 3, 2024

@timmeade Can you create a new issue and upload a diagnostic?
You can follow this documentation to generate a diagnostic.
I'll have a look when I can access the diagnostic.
Thank you.

@arogya
Copy link

arogya commented Jul 7, 2024

I have the same issue.. " it says redirecting" and not signing in.. Do we have a resolution for this, if so pl. share the solution.

@jpbriend
Copy link

jpbriend commented Jul 8, 2024

@arogya Can you create a new issue and upload a diagnostic?
You can follow this documentation to generate a diagnostic.
I'll have a look when I can access the diagnostic.
Thank you.

@marcellonovak
Copy link

marcellonovak commented Jul 18, 2024

For some reason, on ubuntu 22.04.04, I had to use pass init like this: https://docs.docker.com/desktop/get-started/ under "sign in" under "docker desktop"

@dailycodework
Copy link

How can I sign in to Docker? I clicked the sign-in button and it gave me the error attached below. But it will not allow me to sign in. I tried creating a new account with a new email but still can't, as it gives the same error. How can I do this?

image

@ValentinoFilipetto
Copy link

I have this very same issue on Windows 10

@serjkarneichyk
Copy link

@dailycodework @ValentinoFilipetto Could you please open a new issue and provide additional details on how to reproduce the problem? Specifically, were you trying to sign in on the app.docker.com website or through the Docker Desktop application? Please include your account name, whether you were signing in with an email and password, and whether your email was verified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests