2

I'd like to manually login / authenticate with my container registry.

I've been given a auth file that looks like:

{"auths":{"registry.digitalocean.com":{"auth":"******************"}}}

How do I use this file to authenticate? As docker login requires a username and password?

I do not want to use the dotctl method of authentication.

Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286

1 Answers1

1

You can use docker login and use the token as both username and password

docker login -u mytoken -p mytoken registry.digitalocean.com
Beppe C
  • 11,256
  • 2
  • 19
  • 41