Skip to content

Commit 2044068

Browse files
committed
Follow-up to docs/registry.md: jfrog repo
Signed-off-by: Akihiro Suda <[email protected]>
1 parent b2b9838 commit 2044068

File tree

1 file changed

+33
-34
lines changed

1 file changed

+33
-34
lines changed

docs/registry.md

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ See https://github.com/containerd/nerdctl/issues/86 for the discussion about wor
4949
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
5050
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
5151

52-
5352
- [Amazon Elastic Container Registry (ECR)](#amazon-elastic-container-registry-ecr)
5453
- [Logging in](#logging-in)
5554
- [Creating a repo](#creating-a-repo)
@@ -75,12 +74,11 @@ See https://github.com/containerd/nerdctl/issues/86 for the discussion about wor
7574
- [Logging in](#logging-in-5)
7675
- [Creating a repo](#creating-a-repo-5)
7776
- [Pushing an image](#pushing-an-image-5)
78-
- [Quay.io](#quayio)
77+
- [JFrog Artifactory (Cloud/On-Prem)](#jfrog-artifactory-cloudon-prem)
7978
- [Logging in](#logging-in-6)
8079
- [Creating a repo](#creating-a-repo-6)
8180
- [Pushing an image](#pushing-an-image-6)
82-
- [JFrog Artifactory (Cloud/On-Prem)](#jfrog-artifactory-cloudon-prem)
83-
- [Login to JFrog environment](#login-to-jfrog-environment)
81+
- [Quay.io](#quayio)
8482
- [Logging in](#logging-in-7)
8583
- [Creating a repo](#creating-a-repo-7)
8684
- [Pushing an image](#pushing-an-image-7)
@@ -371,65 +369,66 @@ $ nerdctl push asia.gcr.io/<GCP_PROJECT_ID>/hello-world
371369
The pushed image appears in https://console.cloud.google.com/gcr/ .
372370
Private by default.
373371

374-
## Quay.io
375-
See also https://docs.quay.io/solution/getting-started.html
372+
## JFrog Artifactory (Cloud/On-Prem)
373+
See also https://www.jfrog.com/confluence/display/JFROG/Getting+Started+with+Artifactory+as+a+Docker+Registry
376374

377375
### Logging in
378-
379376
```console
380-
$ nerdctl login quay.io -u <USERNAME>
377+
$ nerdctl login <SERVER_NAME>.jfrog.io -u <USERNAME>
381378
Enter Password: ********[Enter]
382379

383380
Login Succeeded
384381
```
385382

383+
Login using the default username: admin, and password: password for the on-prem installation, or the credentials provided to you by email for the cloud installation.
384+
JFrog Platform is integrated with OAuth allowing you to delegate authentication requests to external providers (the provider types supported are Google, OpenID Connect, GitHub Enterprise, and Cloud Foundry UAA)
385+
386386
> **Note**: nerdctl prior to v0.16.1 had a bug that required pressing the Enter key twice.
387387
388388
### Creating a repo
389-
You do not need to create a repo explicitly.
389+
1. Add local Docker repository
390+
1. Add a new Local Repository with the Docker package type via `https://<server-name>.jfrog.io/ui/admin/repositories/local/new`.
391+
2. Add virtual Docker repository
392+
1. Add a new virtual repository with the Docker package type via `https://<server-name>.jfrog.io/ui/admin/repositories/virtual/new`.
393+
2. Add the local docker repository you created in Steps 1 (move it from Available Repositories to Selected Repositories using the arrow buttons).
394+
3. Set local repository as a default local deployment repository.
390395

391396
### Pushing an image
392-
393397
```console
394-
$ nerdctl tag hello-world quay.io/<USERNAME>/hello-world
395-
$ nerdctl push quay.io/<USERNAME>/hello-world
398+
$ nerdctl tag hello-world <SERVER_NAME>.jfrog.io/<VIRTUAL_REPO_NAME>/hello-world
399+
$ nerdctl push <SERVER_NAME>.jfrog.io/<VIRTUAL_REPO_NAME>/hello-world
396400
```
397401

398-
The pushed image appears in https://quay.io/repository/ .
399-
Private as default.
402+
The `SERVER_NAME` is the first part of the URL given to you for your environment: `https://<SERVER_NAME>.jfrog.io`
400403

401-
## JFrog Artifactory (Cloud/On-Prem)
402-
See also https://www.jfrog.com/confluence/display/JFROG/Getting+Started+with+Artifactory+as+a+Docker+Registry
404+
The `VIRTUAL_REPO_NAME` is the name “docker” that you assigned to your virtual repository in 2.i .
403405

404-
### Login to JFrog environment
405-
Login using the default username: admin, and password: password for the on-prem installation, or the credentials provided to you by email for the cloud installation.
406-
JFrog Platform is integrated with OAuth allowing you to delegate authentication requests to external providers (the provider types supported are Google, OpenID Connect, GitHub Enterprise, and Cloud Foundry UAA)
406+
The pushed image appears in `https://<SERVER_NAME>.jfrog.io/ui/repos/tree/General/<VIRTUAL_REPO_NAME>` .
407+
Private by default.
408+
409+
## Quay.io
410+
See also https://docs.quay.io/solution/getting-started.html
407411

408412
### Logging in
413+
409414
```console
410-
$ nerdctl login <SERVER_NAME>.jfrog.io -u <USERNAME>
415+
$ nerdctl login quay.io -u <USERNAME>
411416
Enter Password: ********[Enter]
412417

413418
Login Succeeded
414419
```
415420

421+
> **Note**: nerdctl prior to v0.16.1 had a bug that required pressing the Enter key twice.
422+
416423
### Creating a repo
417-
1. Add local Docker repository
418-
1. Add a new Local Repository with the Docker package type via https://<server-name>.jfrog.io/ui/admin/repositories/local/new.
419-
2. Add virtual Docker repository
420-
1. Add a new virtual repository with the Docker package type via https://<server-name>.jfrog.io/ui/admin/repositories/virtual/new.
421-
2. Add the local docker repository you created in Steps 1 (move it from Available Repositories to Selected Repositories using the arrow buttons).
422-
3. Set local repository as a default local deployment repository.
424+
You do not need to create a repo explicitly.
423425

424426
### Pushing an image
427+
425428
```console
426-
$ nerdctl tag hello-world <SERVER_NAME>.jfrog.io/<VIRTUAL_REPO_NAME>/hello-world
427-
$ nerdctl push <SERVER_NAME>.jfrog.io/<VIRTUAL_REPO_NAME>/hello-world
429+
$ nerdctl tag hello-world quay.io/<USERNAME>/hello-world
430+
$ nerdctl push quay.io/<USERNAME>/hello-world
428431
```
429432

430-
The `SERVER_NAME` is the first part of the URL given to you for your environment: https://`SERVER_NAME`.jfrog.io
431-
432-
The `VIRTUAL_REPO_NAME` is the name “docker” that you assigned to your virtual repository in 2.i .
433-
434-
The pushed image appears in https://<SERVER_NAME>.jfrog.io/ui/repos/tree/General/<VIRTUAL_REPO_NAME> .
435-
Private by default.
433+
The pushed image appears in https://quay.io/repository/ .
434+
Private as default.

0 commit comments

Comments
 (0)