Skip to content

Commit c4bd56b

Browse files
authored
Merge pull request #768 from fahedouch/add-jfrog-as-nerdctl-remote-registry
docs/registry.md: jfrog repo
2 parents ecce184 + 2044068 commit c4bd56b

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

docs/registry.md

+42-1
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,14 @@ See https://github.com/containerd/nerdctl/issues/86 for the discussion about wor
7474
- [Logging in](#logging-in-5)
7575
- [Creating a repo](#creating-a-repo-5)
7676
- [Pushing an image](#pushing-an-image-5)
77-
- [Quay.io](#quayio)
77+
- [JFrog Artifactory (Cloud/On-Prem)](#jfrog-artifactory-cloudon-prem)
7878
- [Logging in](#logging-in-6)
7979
- [Creating a repo](#creating-a-repo-6)
8080
- [Pushing an image](#pushing-an-image-6)
81+
- [Quay.io](#quayio)
82+
- [Logging in](#logging-in-7)
83+
- [Creating a repo](#creating-a-repo-7)
84+
- [Pushing an image](#pushing-an-image-7)
8185

8286
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
8387

@@ -365,6 +369,43 @@ $ nerdctl push asia.gcr.io/<GCP_PROJECT_ID>/hello-world
365369
The pushed image appears in https://console.cloud.google.com/gcr/ .
366370
Private by default.
367371

372+
## JFrog Artifactory (Cloud/On-Prem)
373+
See also https://www.jfrog.com/confluence/display/JFROG/Getting+Started+with+Artifactory+as+a+Docker+Registry
374+
375+
### Logging in
376+
```console
377+
$ nerdctl login <SERVER_NAME>.jfrog.io -u <USERNAME>
378+
Enter Password: ********[Enter]
379+
380+
Login Succeeded
381+
```
382+
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+
386+
> **Note**: nerdctl prior to v0.16.1 had a bug that required pressing the Enter key twice.
387+
388+
### Creating a repo
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.
395+
396+
### Pushing an image
397+
```console
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
400+
```
401+
402+
The `SERVER_NAME` is the first part of the URL given to you for your environment: `https://<SERVER_NAME>.jfrog.io`
403+
404+
The `VIRTUAL_REPO_NAME` is the name “docker” that you assigned to your virtual repository in 2.i .
405+
406+
The pushed image appears in `https://<SERVER_NAME>.jfrog.io/ui/repos/tree/General/<VIRTUAL_REPO_NAME>` .
407+
Private by default.
408+
368409
## Quay.io
369410
See also https://docs.quay.io/solution/getting-started.html
370411

0 commit comments

Comments
 (0)