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

Add support for private repositories #511

dhrp opened this Issue Nov 26, 2014 · 1 comment


None yet
2 participants
Copy link

dhrp commented Nov 26, 2014

Flynn could support images from official docker private repositories.

The use-case is people who have automatic builds setup and/or otherwise use the official Docker repositories and/or other compatible solutions.

Pulling private image from the docker registry is a 2-step process:

1/ Get a token from the Docker index:

curl -I -X GET -H "X-Docker-Token: true" --user username:password

This gives the X-Docker-Token result with a token in the form of signature=22203f434412d85e44fe3d82a012b80dc1560158,repository="myname/private_repo",access=read

2/ With this token in the header like: "Authentication: Token signature=22203f434412d85e44fe3d82a012b80dc1560158,repository="myname/private_repo",access=read" you can then pull the image from


This comment has been minimized.

Copy link

titanous commented Nov 26, 2014

It looks like this is implemented already, probably just needs an update for the latest protocol:

req.Header.Set("Authorization", "Token "+r.token)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.