將我的用戶名和密碼複製/粘貼到Docker Hub網站中工作正常。剛剛創建Docker Hub帳戶,證書不適用於「碼頭登錄」
密碼很長,但不包含破殼符號。
將這些相同憑據複製/粘貼到命令行docker login
中會導致incorrect username or password
錯誤。我試圖傳遞憑據交互(包括複製/粘貼和打字),並通過命令行參數,相同的結果:
# INTERACTIVE
$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: [email protected]
Password: <REDACTED>
Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password
# COMMAND LINE
$ docker login -u [email protected] -p <REDACTED>
Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password
我覺得你的用戶名是不一樣的電子郵件。 – mustaccio
@mustaccio它是,我也嘗試過「碼頭ID」,仍然無法正常工作。 – Rjak
那麼可能是'docker'版本不匹配? – mustaccio