Skip to content

Commit fd25313

Browse files
author
Mike Terhar
authored
Add a GCR page to registries (#455)
1 parent 8f36385 commit fd25313

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

admin/registries/gcr.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: "Google Container Registry"
3+
description: Add the Google Container Registry to Coder.
4+
---
5+
6+
Google Container Registry (GCR) uses different authorization methods, unlike
7+
the generic `registry:2` image that requires a username and password. This
8+
article will show you how to add GCR to Coder using a `_json_key` file.
9+
10+
## Adding a private GCR registry
11+
12+
Create a `_json_key` file with your authorization information:
13+
14+
1. In the [Google Cloud Console](https://console.cloud.google.com/), configure a
15+
service account for access to the GCR registry holding your images for use
16+
with Coder.
17+
1. Create a [JSON key
18+
file](https://cloud.google.com/container-registry/docs/advanced-authentication#json-key).
19+
20+
Add your private GCR registry during the process of [adding
21+
images](../../images/index.md). To import an image:
22+
23+
1. Go to **Images** > **Import Image** in the upper-right.
24+
1. In the dialog that opens, you'll be prompted to pick a registry by default.
25+
However, to _add_ a registry, click **Add a new registry**, which is the
26+
option located immediately below the registry selector.
27+
1. You'll be asked to provide a **registry name** and the **registry**.
28+
1. Since your registry is a **private registry**, provide the `_json_key` string
29+
for the **username** and the file's contents for **password**.
30+
1. Continue with the process of [adding your image](../../images/index.md).
31+
1. When done, click **Import**.

manifest.json

+3
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@
215215
"children": [
216216
{
217217
"path": "./admin/registries/default-registry.md"
218+
},
219+
{
220+
"path": "./admin/registries/gcr.md"
218221
}
219222
]
220223
},

0 commit comments

Comments
 (0)