Skip to content

Commit

Permalink
update compatible oci registries doc
Browse files Browse the repository at this point in the history
Signed-off-by: Asmit Malakannawar <asmitbm2952002@gmail.com>
  • Loading branch information
asmitbm committed Aug 21, 2024
1 parent cb06293 commit 8e9a7ca
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions versioned_docs/version-1.2/compatible_oci_registries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ We're happy to promote all usage, as well as provide feedback.*
- [GitHub Packages container registry](#github-packages-container-registry-ghcr)
- [Docker Hub](#docker-hub)
- [Zot Registry](#zot-registry)
- [Red Hat Quay](#red-hat-quay)

### CNCF Distribution

Expand Down Expand Up @@ -300,9 +301,6 @@ ACR Artifact Documentation: [aka.ms/acr/artifacts](https://aka.ms/acr/artifacts)
oras pull docker.io/${DH_USER}/artifact:1.0
```

[artifacts]: https://github.com/opencontainers/artifacts
[distribution-spec]: https://github.com/opencontainers/distribution-spec/

### [Zot Registry](https://zotregistry.dev)

- [Authenticating with Zot Registry](https://zotregistry.dev/user-guides/user-guide-datapath/#authentication_2)
Expand All @@ -325,5 +323,25 @@ ACR Artifact Documentation: [aka.ms/acr/artifacts](https://aka.ms/acr/artifacts)
oras pull --plain-http <registry-ip>:5000/hello-artifact:v2 -d -v
```

### [Red Hat Quay](https://quay.io/)

- Authenticating to quay.io using a Robot Account and Token

```
echo $TOKEN | oras login -u $ROBOT_ACCOUNT --password-stdin quay.io
```

- Pusing an artifact to quay.io

```
oras push quay.io/$USER/$REPOSITORY/myartifact:v1 --artifact-type application/text ./myartifact.txt
```

- Pulling an artifact from quay.io

```
oras pull quay.io/$USER/$REPOSITORY/myartifact:v1
```

[artifacts]: https://github.com/opencontainers/artifacts
[distribution-spec]: https://github.com/opencontainers/distribution-spec/
[distribution-spec]: https://github.com/opencontainers/distribution-spec/

0 comments on commit 8e9a7ca

Please sign in to comment.