docker / hub-tool

🧪 Docker Hub experimental CLI tool
Apache License 2.0
330 stars 64 forks source link

login with personal access token fails #207

Open christian-korneck opened 2 years ago

christian-korneck commented 2 years ago

BUG REPORT INFORMATION

Description

For me trying to hub-tool login with a Personal Access Token (PAT) fails. Login works for the same Docker account with username/password. The same PAT works with docker login.

Steps to reproduce the issue:

$ hub-tool --version
Docker Hub Tool v0.4.4, build c9cb0ac
$ hub-tool login --verbose
Username: mydockerusername
Password: ****************************** (a PAT with highest permissions)
Error: error storing credentials - err: exit status 1, out: `error storing credentials - err: exit status 1, out: `The stub received bad data.``

Describe the results you received: login with PAT did not work

Describe the results you expected: login with PAT works

Output of hub-tool --version: v0.4.4, build c9cb0ac

Additional environment details (AWS, VirtualBox, physical, etc.): tried on Windows x64

voxmaster commented 4 months ago

Some problems but with a regular password. Tested on WSL1

Username: myusername
Password: 
Error: error storing credentials - err: exit status 1, out: `error storing credentials - err: exit status 1, out: `The stub received bad data.``
hub-tool --version
Docker Hub Tool v0.4.6, build 74bc560