Skip to content

Commit 5e6c6d0

Browse files
committed
Merge pull request #201 from helgi/registry
feat(registry): add private registry documentation
2 parents 41ce729 + f8afe88 commit 5e6c6d0

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

src/using-workflow/using-docker-images.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,29 @@ Use `deis scale cmd=3` to increase `cmd` processes to 3, for example. Scaling a
5858
process type directly changes the number of [Containers][container]
5959
running that process.
6060

61-
!!! attention
62-
Support for Docker registry authentication is coming soon.
61+
## Private Registry
6362

63+
To deploy Docker images from a private registry or even from a private repository within a public registry, take the following steps:
64+
65+
* Gather the username and password for the registry, such as a [Quay.io Robot Accounts][] or [GCR.io Long Lived Token][]
66+
* Run `deis registry:set username=<the-user> password=<secret> -a <application-name>`
67+
* Now perform `deis pull` as normal, against an image in the private registry
68+
69+
When using a [GCR.io Long Lived Token][] the JSON blob will have to be compacted first using a tool like [jq][]
70+
and then used in the password field in `deis registry:set`.
71+
72+
`cat serviceaccount.json | jq -c .` will compact the JSON blob using [jq][].
73+
74+
**NOTE:**
75+
Currently [GCR.io][] and [ECR][] in short lived auth token mode are not supported
6476

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

0 commit comments

Comments
 (0)