Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
feat(registry): add private registry documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
helgi committed Apr 26, 2016
1 parent 41ce729 commit 408a499
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/using-workflow/using-docker-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,28 @@ Use `deis scale cmd=3` to increase `cmd` processes to 3, for example. Scaling a
process type directly changes the number of [Containers][container]
running that process.

!!! attention
Support for Docker registry authentication is coming soon.
## Private Registry

To deploy Docker images from a private registry, take the following steps:

* Gather the username and password for the registry, such as a [Quay.io Robot Accounts][] or [GCR.io Long Lived Token][]
* Run `deis registry:set username=<the-user> password=<secret> -a <application-name>`
* Now do `deis pull` as normal, against an image in a private repository

When using a [GCR.io Long Lived Token][] the JSON blob will have to be compacted first using a tool like [jq][].

`cat serviceaccount.json | jq -c .` will give the desired result

**NOTE:**
Currently [GCR.io][] and [ECR][] in short lived auth token mode are not supported

[container]: ../reference-guide/terms.md#container
[controller]: ../understanding-workflow/components.md#controller
[Docker Image]: https://docs.docker.com/introduction/understanding-docker/
[DockerHub]: https://registry.hub.docker.com/
[CMD instruction]: https://docs.docker.com/reference/builder/#cmd
[Quay.io Robot Accounts]: https://docs.quay.io/glossary/robot-accounts.html
[GCR.io Long Lived Token]: https://cloud.google.com/container-registry/docs/auth#using_a_json_key_file
[jq]: https://stedolan.github.io/jq/
[GCR.io]: https://gcr.io
[ECR]: https://aws.amazon.com/ecr/

0 comments on commit 408a499

Please sign in to comment.