Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access Token for Dockerhub

I created a repository on hub.docker.com and now want to push my image to the Dockerhub using my credentials. I am wondering whether I have to use my username and password or whether I can create some kind of access token to push the docker image.

What I want to do is using the docker-image resource from Concourse to push an image to Dockerhub. Therefore I have to configure credentials like:

type: docker-image
source:
  email: {{docker-hub-email}}
  username: {{docker-hub-username}}
  password: {{docker-hub-password}}
  repository: {{docker-hub-image-dummy-resource}}

and I don't want to use my Dockerhub password for that.

like image 314
Michael Lihs Avatar asked Jan 24 '17 17:01

Michael Lihs


People also ask

What is registry URL for Docker Hub?

Feed Type: Docker Container Registry. Name: DockerHub (or anything else that makes sense to you) URL: https://index.docker.io. Registry Path: leave blank.

How do I log into Docker Hub from terminal?

Type docker login -u <your-username> on your terminal and paste your Access Token when requested by the password. Save this answer.


1 Answers

Docker Hub supports Access Token
goto Account Settings > Security

its same as Github personal access token (PAT)

You can use this token instead of actual password

like image 145
WSMathias9 Avatar answered Sep 28 '22 03:09

WSMathias9