---
updatedAt: 2026-06-01T11:04:39.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/artifactory/llms.txt
---

# OCI Repositories

Open Container Initiative (OCI) images provide a standardized way to package application code and all its dependencies into a single, portable unit. This standardization ensures that an image built once can run consistently across various container runtimes and operating systems. Using Artifactory as a central repository manager for OCI images offers a robust solution for managing your containerized applications throughout their lifecycle. The OCI integration with Artifactory provides a secure, centralized location for storing, managing, and distributing your OCI images, alongside other package types. For more information, see <Anchor label="the OCI website" target="_blank" href="https://opencontainers.org/">the OCI website</Anchor>.

![OCI\_Compliant\_\_Upstream\_Registries.png](https://files.readme.io/b90ee28a46fa7fb4e3d701318e47ea669a4b82748359aa73fbf034d36cfc7e4d-uuid-9897bd40-984d-51ab-00f3-713f99d21255.png)

Using Artifactory to manage OCI images provides the following benefits:

* **Single Source of Truth**: Store all your OCI images alongside other package types in a centralized location with access to local, remote, and virtual repositories.
* **Use OCI Natively**: Artifactory supports the relevant OCI Distribution specification API calls so that you can transparently use the OCI client to access images through Artifactory.
* **Enhanced Security**: Artifactory's built-in security features, including access control and vulnerability scanning, provide secure OCI push and pull with local OCI repositories as fully functional, secure, private OCI registries.
* **Improved Traceability**: Gain full visibility and traceability of your OCI images, from creation to deployment.
* **Optimized Performance and Reliable Access**: Leverage Artifactory's caching and proxy capabilities with remote repositories to accelerate image pulls and improve build times.
* **High Availability and Disaster Recovery**: Ensure continuous access to your OCI images with Artifactory's high availability and disaster recovery options.
* **Support for diverse OCI clients**: Connect and work with various OCI-compliant clients, such as Podman and BuildX.

# Get Started with OCI

To get started working with OCI, complete the following main steps:

1. <Anchor label="Create an OCI Repository" title="Create an OCI Repository" href="#create-an-oci-repository">Create an OCI Repository</Anchor>
2. <Anchor label="Connect OCI Clients to Artifactory" title="Connect OCI Clients to Artifactory" href="#connect-oci-clients-to-artifactory">Connect OCI Clients to Artifactory</Anchor>
3. Push and pull OCI images using a supported client:

   * <Anchor label="Podman" title="Podman" href="#podman">Podman</Anchor>
   * <Anchor label="BuildX" title="BuildX" href="#buildx">BuildX</Anchor>
   * [BuildKit/buildctl](#buildkitbuildctl)
   * <Anchor label="WASM to OCI" title="WASM to OCI" href="#wasm-to-oci">WASM to OCI</Anchor>
   * <Anchor label="ORAS" title="ORAS" href="#oras">ORAS</Anchor>
   * <Anchor label="Helm OCI" title="Helm OCI" href="#helm-oci">Helm OCI</Anchor>

   ![](https://files.readme.io/b9201dd5681675ecf3f3f0e3f79ac3a84a5fa7c35a9a9ae569e344cc462a1230-uuid-02c7ef9d-cc3e-7811-bc9f-cf197676a1e1.png)

# Create an OCI Repository

This topic describes how to create an OCI repository. This is required before publishing and installing OCI images and other OCI-compliant artifacts. There are three primary types of repositories:

* **Local repositories**: Store and share first- and second-party packages with your organization

* **Remote repositories**: Download packages from remote OCI-compliant registries or other Artifactory instances

<Callout icon="📘" theme="info">
  **DockerHub Remote Repository Restrictions**

  Artifactory provides unlimited access to the DockerHub remote repository for unauthenticated Cloud users. Excessive use may incur a rate limit of 100 pulls per six hours. For compliance and security, and to avoid rate limits, authenticate to DockerHub using credentials.
</Callout>

* **Virtual repositories**: Aggregate remote and local repositories, enabling your organization to scale by providing a single URL that provides access to multiple repositories and types

For more information on JFrog repositories, see [Repository Management](https://docs.jfrog.com/artifactory/docs/repository-management).

<Callout icon="📘" theme="info">
  **Supported Naming Conventions**

  Due to OCI client limitations, do not use underscores (`_`) or uppercase letters in OCI repository names. The OCI client cannot communicate with a repository named `oci_local` or `OCI-local`, but it can communicate with `oci-local` .
</Callout>

**Prerequisite**: You need Admin or Project Admin permissions in Artifactory to create a repository. If you don't have Admin permissions, the option will not be available.

**To create an OCI repository**:

1. In the **Administration** tab, click **Repositories | Create a Repository**.

   ![CreateAnsibleLocal1.png](https://files.readme.io/1f8222e8f2ac2aad1a86fefa1724179c1b742107ef866fe81f8e46ccf1fd4834-uuid-e67a4c4e-2e98-19f1-84aa-97a7c9e52a10.png)
2. Select the type of repository you want to create: local, remote, or virtual.
3. Select the **OCI** package type.
4. Configure the required fields for the repository:

   * For local repositories, in the **Repository Key** field, type a meaningful name for the repository. For example, `oci-local`. For more information on local repositories and their settings, see [Local Repositories](https://docs.jfrog.com/artifactory/docs/local-repositories).
   * For remote repositories, verify the **Repository URL** and update as needed. For more information on remote repositories and their settings, see [Remote Repositories](https://docs.jfrog.com/artifactory/docs/remote-repositories).
   * For virtual repositories, select one or more local or remote repository types to include in the virtual repository. For more information on virtual repositories and their settings, see [Virtual Repositories](https://docs.jfrog.com/artifactory/docs/virtual-repositories).
5. Click **Create Repository**. The repository is created and the Repositories window is displayed.

# Connect OCI Clients to Artifactory

This topic provides details on configuring OCI clients to work with Artifactory. To get up and running quickly to use OCI, see <Anchor label="Get Started with OCI" title="Get Started with OCI" href="#get-started-with-oci">Get Started with OCI</Anchor>.

**Pre-requisite**: Before connecting your client to Artifactory, you must have an existing OCI repository in Artifactory. For more information, see <Anchor label="Create an OCI Repository" title="Create an OCI Repository" href="#create-an-oci-repository">Create an OCI Repository</Anchor>.

**Supported Clients**

* <Anchor label="Podman" title="Podman" href="#podman">Podman</Anchor>
* <Anchor label="BuildX" title="BuildX" href="#buildx">BuildX</Anchor>
* [BuildKit/buildctl](#buildkitbuildctl)
* <Anchor label="WASM to OCI" title="WASM to OCI" href="#wasm-to-oci">WASM to OCI</Anchor>
* <Anchor label="ORAS" title="ORAS" href="#oras">ORAS</Anchor>
* <Anchor label="Helm OCI" title="Helm OCI" href="#helm-oci">Helm OCI</Anchor>

<Callout icon="📘" theme="info">
  **Note**

  The example JFrog Platform URLs in the following instructions use the [repository path method](https://docs.jfrog.com/artifactory/docs/additional-docker-information#the-repository-path-method-for-docker). Depending on your Artifactory deployment and setup, your JFrog Platform URL may use different formats. For examples, see [Docker Repository URL Formats](https://docs.jfrog.com/artifactory/docs/additional-docker-information#docker-repository-url-formats).
</Callout>

## Podman

The following topics describe how to configure and use Podman with Artifactory:

* <Anchor label="Connect Podman to Artifactory" title="Connect Podman to Artifactory" href="#connect-podman-to-artifactory">Connect Podman to Artifactory</Anchor>
* <Anchor label="Push OCI Images with Podman" title="Push OCI Images with Podman" href="#push-oci-images-with-podman">Push OCI Images with Podman</Anchor>
* <Anchor label="Pull OCI Images with Podman" title="Pull OCI Images with Podman" href="#pull-oci-images-with-podman">Pull OCI Images with Podman</Anchor>

### Connect Podman to Artifactory

Podman, or the Pod Manager, is a tool for managing, developing, and running OCI images on Linux systems. It is daemonless, which makes it more accessible and less vulnerable to security breaches than other clients. You can configure Podman to work with Artifactory using two methods:

* [`podman login`](#connect-podman-to-artifactory-using-podman-login)
* [Set credentials manually](#connect-podman-to-artifactory-manually)

**Logged in vs. Anonymous User**: You can work with Podman and Artifactory as either a logged-in user, or as an anonymous user without logging in. To work with Artifactory using Anonymous Access, configure that access under **Admin | Security | General**. For details, refer to <Anchor label="Allow Anonymous Access" target="_blank" href="/administration/docs/security-configuration#allow-anonymous-access">Allow Anonymous Access</Anchor>.

#### Connect Podman to Artifactory Using `podman login`

1. Run the following command:

   ```shell
   podman login [JFrogPlatformURL]
   ```

   Where:

   * `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema

   For example:

   ```shell
   podman login company.jfrog.io
   ```
2. Enter your Artifactory credentials.

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

#### Connect Podman to Artifactory Manually

By default, Podman looks for authentication information in `${XDG_RUNTIME_DIR}/containers/auth.json`. If no valid credentials are found in the file, Podman falls back to the `~/.docker/config.json` file. You can also specify a different authentication file path by using the `--authfile` flag with your Podman commands.

**To manually connect Podman to Artifactory:**

Add the following snippet to the `${XDG_RUNTIME_DIR}/containers/auth.json` or `~/.docker/config.json` file:

```json
{
	"auths": {
		"[JFrogPlatformURL]" : {
			"auth": "<AUTH_TOKEN>",
			"email": "<EMAIL>"
		}
	}
}
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<AUTH_TOKEN>`: Your Base64-encoded credentials
* `<EMAIL>`: The email address you use to access your JFrog account

For example:

```json
{
	"auths": {
		"company.jfrog.io" : {
			"auth": "ZGVtb191c2VyOnNhbXBsZV9hdXRoX3Rva2VuXzEyMzQ1QUJDREVGRg==",
			"email": "jeffry@frog.com"
		}
	}
}
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

**Next steps:**

* [Push Docker Images with Podman](#push-oci-images-with-podman)
* [Pull Docker Images with Podman](#pull-oci-images-with-podman)

### Push OCI Images with Podman

**To tag and push an OCI image to Artifactory with Podman:**

1. Tag your image by running the following command:

   ```shell
   podman tag <IMAGE_ID> [JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG>
   ```

   Where:

   * `<IMAGE_ID>`: The existing image ID
   * `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
   * `<REPO_NAME>`: The name of the target repository
   * `<IMAGE>`: The image name
   * `<TAG>`: The tags you want to apply to the image

   For example:

   ```shell
   podman tag a1b2c3d4e5f6 company.jfrog.io/oci-local/froggy-app:v1.0.0
   ```
2. Run the following command to push the image to Artifactory:

   ```shell
   podman push [JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG> -f=oci
   ```

   Where:

   * `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
   * `<REPO_NAME>`: The name of the target repository
   * `<IMAGE>`: The image name
   * `<TAG>`: The tags you want to apply to the image

   For example:

   ```shell
   podman push company.jfrog.io/oci-local/froggy-app:v1.0.0 -f=oci
   ```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

### Pull OCI Images with Podman

**To pull an OCI image with Podman:**

Run the following command:

```shell
podman pull [JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG>
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The repository where the image is located
* `<IMAGE>`: The image name
* `<TAG>`: The tags identifying the version of the image you want to pull

For example:

```shell
podman pull company.jfrog.io/oci-local/froggy-app:v1.0.0
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set Me Up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

## BuildX

The following topics describe how to configure and use BuildX with Artifactory:

* <Anchor label="Connect BuildX to Artifactory" title="Connect BuildX to Artifactory" href="#connect-buildx-to-artifactory">Connect BuildX to Artifactory</Anchor>
* <Anchor label="Push OCI Images with BuildX" title="Push OCI Images with BuildX" href="#push-oci-images-with-buildx">Push OCI Images with BuildX</Anchor>
* <Anchor label="Pull OCI Images with BuildX" title="Pull OCI Images with BuildX" href="#pull-oci-images-with-buildx">Pull OCI Images with BuildX</Anchor>

### Connect BuildX to Artifactory

Docker Buildx is a CLI plugin that extends the standard `docker build` command. It supports advanced features like creating multi-platform images from a single command and offers enhanced caching and output options.

**To connect BuildX to Artifactory:**

Run the following command:

```shell
docker login [JFrogPlatformURL]
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema

For example:

```shell
docker login company.jfrog.io
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

**Next steps:**

* <Anchor label="Push OCI Images with BuildX" title="Push OCI Images with BuildX" href="#push-oci-images-with-buildx">Push OCI Images with BuildX</Anchor>
* <Anchor label="Pull OCI Images with BuildX" title="Pull OCI Images with BuildX" href="#pull-oci-images-with-buildx">Pull OCI Images with BuildX</Anchor>

### Push OCI Images with BuildX

BuildX supports building and pushing images in two ways:

* [Single architecture](#push-single-images-with-buildx)
* [Multiple architecture](#push-multiple-images-with-buildx)

#### Push Single Images with BuildX

Run the following Docker command:

```shell
docker buildx build --platform <ARCHITECTURE> -t [JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG> . --push
```

Where:

* `<ARCHITECTURE>`: The operating system and CPU architecture combination you want to build
* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The repository where the image is located
* `<IMAGE>`: The image name
* `<TAG>`: The tags identifying the version of the image you want to pull

For example:

```shell
docker buildx build --platform linux/amd64 company.jfrog.io/oci-local/froggy-app:v1.0.0 . --push
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

#### Push Multiple Images with BuildX

1. Run this command to open a new builder instance that you can use to build images for multiple architectures:

   ```shell
   docker buildx create --use
   ```
2. Build and publish multiple images by running the following command:

   ```shell
   docker buildx build --platform <ARCHITECTURES> -t [JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG> . --push
   ```

   Where:

   * `<ARCHITECTURES>`: A comma-separated list of the operating system and CPU combinations you want to build
   * `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
   * `<REPO_NAME>`: The repository where the image is located
   * `<IMAGE>`: The image name
   * `<TAG>`: The tags identifying the version of the image you want to pull

   For example:

   ```shell
   docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/s390x,linux/ppc64le -t company.jfrog.io/oci-local/froggy-app:v1.0.0 . --push
   ```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

### Pull OCI Images with BuildX

BuildX itself does not provide a direct command for pull actions. To download an OCI image to your local machine, use a separate client like Docker.

**To pull an OCI image with BuildX:**

Run the following Docker command:

```shell
docker pull [JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG>
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The repository where the image is located
* `<IMAGE>`: The image name
* `<TAG>`: The tags identifying the version of the image you want to pull

For example:

```shell
docker pull company.jfrog.io/oci-local/froggy-app:v1.0.0
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

## BuildKit/buildctl

The following topics describe how to configure and use BuildKit/buildctl with Artifactory:

* [Connect BuildKit/buildctl to Artifactory](#connect-buildkitbuildctl-to-artifactory)
* [Push OCI Images with BuildKit/buildctl](#push-oci-images-with-buildkitbuildctl)
* [Pull OCI Images with BuildKit/buildctl](#pull-oci-images-with-buildkitbuildctl)

### Connect BuildKit/buildctl to Artifactory

BuildKit is a toolkit for building container images and other build artifacts efficiently and securely. You can use the toolkit to build multiarchitecture images. It operates as a daemon that executes build operations. buildctl is the BuildKit command-line client used to interact with the daemon and define build processes.

**To connect BuildKit to Artifactory:**

1. Run the following Docker command:

   ```shell
   docker login [JFrogPlatformURL]
   ```

   Where:

   * `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema

   For example:

   ```shell
   docker login company.jfrog.io
   ```
2. Enter your Artifactory credentials.

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

**Next steps:**

* [Push OCI Images with BuildKit/buildctl](#push-oci-images-with-buildkitbuildctl)
* [Pull OCI Images with BuildKit/buildctl](#pull-oci-images-with-buildkitbuildctl)

### Push OCI Images with BuildKit/buildctl

**To tag and push an OCI image to Artifactory with buildctl:**

Run the following command:

```shell
buildctl build \
--frontend=dockerfile.v0 \
--local context=. \
--local dockerfile=. \
--output type=image,name=[JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG>,push=true \
--export-cache type=registry,ref=[JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG>,mode=max,push=true \
--import-cache type=registry,ref=[JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG>
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The name of the target repository
* `<IMAGE>`: The image name
* `<TAG>`: The tags you want to apply to the image

For example:

```shell
buildctl build \
--frontend=dockerfile.v0 \
--local context=. \
--local dockerfile=. \
--output type=image,name=company.jfrog.io/oci-local/froggy-app:v1.0.0,push=true \
--export-cache type=registry,ref=company.jfrog.io/oci-local/froggy-app:v1.0.0,mode=max,push=true \
--import-cache type=registry,ref=company.jfrog.io/oci-local/froggy-app:v1.0.0
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

### Pull OCI Images with BuildKit/buildctl

buildctl itself does not provide a direct command for pull actions. To download an OCI image to your local machine, use a separate client like Docker.

**To pull an OCI image with BuildKit/buildctl:**

Run the following Docker command:

```shell
docker pull [JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG>
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The repository where the image is located
* `<IMAGE>`: The image name
* `<TAG>`: The tags identifying the version of the image you want to pull

For example:

```shell
docker pull company.jfrog.io/oci-local/froggy-app:v1.0.0
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

## WASM to OCI

The following topics describe how to configure and use WASM to OCI with Artifactory:

* <Anchor label="Connect WASM to OCI to Artifactory" title="Connect WASM to OCI to Artifactory" href="#connect-wasm-to-oci-to-artifactory">Connect WASM to OCI to Artifactory</Anchor>
* <Anchor label="Pull WASM Files with WASM to OCI" title="Pull WASM Files with WASM to OCI" href="#pull-wasm-files-with-wasm-to-oci">Pull WASM Files with WASM to OCI</Anchor>
* <Anchor label="Push WASM Files with WASM to OCI" title="Push WASM Files with WASM to OCI" href="#push-wasm-files-with-wasm-to-oci">Push WASM Files with WASM to OCI</Anchor>

### Connect WASM to OCI to Artifactory

Wasm to OCI refers to the standard and tooling that allows WebAssembly (Wasm) modules to be packaged, distributed, and run using OCI specifications.

**To connect WASM to OCI to Artifactory:**

Run the following Docker command:

```shell
docker login [JFrogPlatformURL]
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema

For example:

```shell
docker login company.jfrog.io
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

**Next steps:**

* <Anchor label="Pull WASM Files with WASM to OCI" title="Pull WASM Files with WASM to OCI" href="#pull-wasm-files-with-wasm-to-oci">Pull WASM Files with WASM to OCI</Anchor>
* <Anchor label="Push WASM Files with WASM to OCI" title="Push WASM Files with WASM to OCI" href="#push-wasm-files-with-wasm-to-oci">Push WASM Files with WASM to OCI</Anchor>

### Push WASM Files with WASM to OCI

**To tag and push WASM files to Artifactory with WASM to OCI:**

Run the following command:

```shell
wasm-to-oci push <WASM_FILE> [JFrogPlatformURL]/<REPO_NAME>/<PACKAGE>:<TAG>
```

Where:

* `<WASM_FILE>`: The path to the WASM file on your local environment
* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The target repository
* `<PACKAGE>`: The name of the WASM file in Artifactory
* `<TAG>`: The tags you want to apply to the package

For example:

```shell
wasm-to-oci push ~/projects/my-app/target/wasm32-wasi/release/froglogic.wasm company.jfrog.io/oci-local/froggy-app:v1.0.0
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

### Pull WASM Files with WASM to OCI

**To pull WASM files from Artifactory with WASM to OCI:**

Run the following command:

```shell
wasm-to-oci pull [JFrogPlatformURL]/<REPO_NAME>/<PACKAGE>:<TAG>
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The target repository
* `<PACKAGE>`: The name of the WASM file in Artifactory
* `<TAG>`: The tags you want to apply to the package

For example:

```shell
wasm-to-oci pull company.jfrog.io/oci-local/froggy-app:v1.0.0
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

## ORAS

The following topics describe how to configure and use ORAS with Artifactory:

* <Anchor label="Connect ORAS to Artifactory" title="Connect ORAS to Artifactory" href="#connect-oras-to-artifactory">Connect ORAS to Artifactory</Anchor>
* <Anchor label="Push OCI Artifacts with ORAS" title="Push OCI Artifacts with ORAS" href="#push-oci-artifacts-with-oras">Push OCI Artifacts with ORAS</Anchor>
* <Anchor label="Pull OCI Artifacts with ORAS" title="Pull OCI Artifacts with ORAS" href="#pull-oci-artifacts-with-oras">Pull OCI Artifacts with ORAS</Anchor>

### Connect ORAS to Artifactory

ORAS (OCI Registry As Storage) is a tool and set of libraries that extend OCI-compliant registries to store and manage all artifact types. It allows you to use `push` and `pull` commands to distribute and manage diverse content like Helm charts, SBOMs, signatures, and WebAssembly modules.

**To connect ORAS to Artifactory:**

Run the following command:

```shell
oras login [JFrogPlatformURL]
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema

For example:

```shell
oras login company.jfrog.io
```

Alternatively, you can provide your username and token in advance with the following command:

```shell
oras login -u <USERNAME> -p <TOKEN> [JFrogPlatformURL]
```

Where:

* `<USERNAME>`: Your JFrog username
* `<TOKEN>`: Your identity token
* `<JFrogPlatformURL>`: The URL of your JPD, without the protocol schema

For example:

```shell
oras login -u jeffry@frog.com -p eyJhbGciOiJIUzI1NiJ9eyJzdWIiOiJ1c2VyMTIzIiwiaWF0IjoxNzA0MDY3MjAwfQ company.jfrog.io
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

**Next steps:**

* <Anchor label="Push OCI Artifacts with ORAS" title="Push OCI Artifacts with ORAS" href="#push-oci-artifacts-with-oras">Push OCI Artifacts with ORAS</Anchor>
* <Anchor label="Pull OCI Artifacts with ORAS" title="Pull OCI Artifacts with ORAS" href="#pull-oci-artifacts-with-oras">Pull OCI Artifacts with ORAS</Anchor>

### Push OCI Artifacts with ORAS

**To push an OCI artifact to Artifactory with ORAS:**

Run the following command:

```shell
oras push [JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG> <ARTIFACT_FILE_NAME>
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The name of the target repository
* `<IMAGE>`: The image name in Artifactory
* `<TAG>`: The tags you want to apply to the image
* `<ARTIFACT_FILE_NAME>`: The local file you want to push to Artifactory

For example:

```shell
oras push company.jfrog.io/oci-local/froggy-app:v1.0.0 froggy-app.json
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

### Pull OCI Artifacts with ORAS

**To pull an OCI artifact from Artifactory with ORAS:**

Run the following command:

```shell
oras pull [JFrogPlatformURL]/<REPO_NAME>/<IMAGE>:<TAG>
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The name of the target repository
* `<IMAGE>`: The image name in Artifactory
* `<TAG>`: The tags you want to apply to the image

For example:

```shell
oras pull company.jfrog.io/oci-virtual/froggy-app:v1.0.0
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

## Helm OCI

The following topics describe how to configure and use Helm OCI with Artifactory:

* <Anchor label="Connect Helm OCI to Artifactory" title="Connect Helm OCI to Artifactory" href="#connect-helm-oci-to-artifactory">Connect Helm OCI to Artifactory</Anchor>
* <Anchor label="Push OCI Charts to Artifactory with Helm" title="Push OCI Charts to Artifactory with Helm" href="#push-oci-charts-to-artifactory-with-helm">Push OCI Charts to Artifactory with Helm</Anchor>
* <Anchor label="Pull OCI Charts from Artifactory with Helm" title="Pull OCI Charts from Artifactory with Helm" href="#pull-oci-charts-from-artifactory-with-helm">Pull OCI Charts from Artifactory with Helm</Anchor>

### Connect Helm OCI to Artifactory

You can store and distribute Helm charts directly within an OCI registry, leveraging the same infrastructure used for container images. This allows for a unified approach to managing and distributing application code as images, and deployment configurations as charts through a single registry.

**Supported client versions**: Helm 3.8 and above

**To connect Helm OCI to Artifactory:**

Run the following command:

```shell
helm registry login [JFrogPlatformURL]
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema

For example:

```shell
helm registry login company.jfrog.io
```

Alternatively, you can provide your username and token in advance with the following command:

```shell
helm registry login -u <USERNAME> -p <TOKEN> [JFrogPlatformURL]
```

Where:

* `<USERNAME>`: Your JFrog username
* `<TOKEN>`: Your identity token
* \[JFrogPlatformURL]: The URL of your JPD, without the protocol schema

For example:

```shell
helm registry login -u jeffry@frog.com -p eyJhbGciOiJIUzI1NiJ9eyJzdWIiOiJ1c2VyMTIzIiwiaWF0IjoxNzA0MDY3MjAwfQ company.jfrog.io
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

**Next steps:**

* <Anchor label="Push OCI Charts to Artifactory with Helm" title="Push OCI Charts to Artifactory with Helm" href="#push-oci-charts-to-artifactory-with-helm">Push OCI Charts to Artifactory with Helm</Anchor>
* <Anchor label="Pull OCI Charts from Artifactory with Helm" title="Pull OCI Charts from Artifactory with Helm" href="#pull-oci-charts-from-artifactory-with-helm">Pull OCI Charts from Artifactory with Helm</Anchor>

### Push OCI Charts to Artifactory with Helm

You can use Helm to push charts to Artifactory in OCI format.

Run the following command:

```shell
helm push <CHART_TGZ> oci://[JFrogPlatformURL]/<REPO_NAME>
```

Where:

* `<CHART_TGZ>`: The filepath to the local Helm chart file
* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The name of the target repository

For example:

```shell
helm push frog-chart-1.0.0.tgz oci://company.jfrog.io/oci-virtual
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

### Pull OCI Charts from Artifactory with Helm

You can use Helm to pull charts in two ways:

* [Pull a specific version](#pull-a-specific-oci-chart-version)
* [Pull the latest version](#pull-the-latest-oci-chart-version)

#### Pull a Specific OCI Chart Version

Run the following command:

```shell
helm pull oci://[JFrogPlatformURL]/<REPO_NAME>/<CHART_NAME> --version <CHART_VERSION>
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The name of the repository where the chart is located
* `<CHART_NAME>`: The name of the chart in Artifactory
* `<CHART_VERSION>`: The version number that you want to pull

For example:

```shell
helm pull oci://company.jfrog.io/oci-virtual/frog-chart --version 1.0.0
```

#### Pull the Latest OCI Chart Version

Run the following command:

```shell
helm pull oci://[JFrogPlatformURL]/<REPO_NAME>/<CHART_NAME>
```

Where:

* `[JFrogPlatformURL]`: The URL of your JPD, without the protocol schema
* `<REPO_NAME>`: The name of the repository where the chart is located
* `<CHART_NAME>`: The name of the chart in Artifactory

For example:

```shell
helm pull oci://company.jfrog.io/oci-virtual/frog-chart
```

<Callout icon="📘" theme="info">
  **Note**

  You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see <Anchor label="Use Artifactory Set Me Up for Configuring Package Manager Clients" title="Use Artifactory Set Me Up for Configuring Package Manager Clients" href="/docs/use-artifactory-set-me-up-for-configuring-package-manager-clients">Use Artifactory Set Me Up for Configuring Package Manager Clients</Anchor>.
</Callout>

# Additional OCI Topics

The following pages provide additional information about using OCI with Artifactory:

* [Shared-Digest Download Statistics](#shared-digest-download-statistics)
* <Anchor label="Use Referrers REST API to Discover OCI References" title="Use Referrers REST API to Discover OCI References" href="#use-referrers-rest-api-to-discover-oci-references">Use Referrers REST API to Discover OCI References</Anchor>

## Shared-Digest Download Statistics

OCI and Docker share the same download statistics behavior. When multiple tags share one manifest digest, you can enable [shared-digest download statistics](https://docs.jfrog.com/artifactory/docs/additional-docker-information#enable-synchronized-download-statistics-for-shared-digests) so pulls update `Number of downloads`, `Last download date`, and `Last downloaded by` consistently across those tags.

## Use Referrers REST API to Discover OCI References

Starting from Artifactory version 7.90.1, Artifactory supports Referrers API, part of the OCI specification version 1.1 which provides a new way to link between images and their related information.

Using referrers API, you can connect an image to its signatures, SBOM certificates, attestations, Xray scan results, and other related artifacts, easily retrieve them together, and transfer them between repositories.

For more information, see <Anchor label="Open Container Initiative Distribution Specification" target="_blank" href="https://github.com/opencontainers/distribution-spec/blob/main/spec.md">Open Container Initiative Distribution Specification</Anchor>.

### How Referrers API Works in Artifactory

When deploying an image to a repository, you can use many different OCI-compliant tools to add referrers and attestations. This will create a new signature image in the folder of the original image- when you open the `manifest.json` file for that image, it will contain a ‘subject’ field that points to the original image. Using the Referrers API also creates a `referrers.json` index file only visible to users with Manage permissions, which will be updated whenever this image is updated or new referrers are added.

Now these images are linked, and you can discover the connection via CLI or REST API.

To use the CLI, you can use functions like `oras discover` to find all associated artifacts, such as signatures, attestations, and SBOMs, that reference a specific image. For example, when running the following command:

```shell
oras discover <JFROG_PLATFORM_URL>/<REPOSITORY_NAME>/<IMAGE>:<DIGEST_OR_TAG>
```

You will get a list of all of the artifacts referencing your image.

To use REST API, use the following GET request:

```shell
GET <ARTIFACTORY_URL>/<REPOSITORY_NAME>/<IMAGE>/referrers/<DIGEST_OR_TAG>
```

To get a JSON file with a manifest list detailing all of the signatures associated with your image.

### How to Use Referrers API

To enable referrers API on an image in an Artifactory repository:

1. Select an image and a reference you would like to attach to it. Use the CLI command for the client you selected for attaching a signature. For example, `cosign attest`.

<Callout icon="📘" theme="info">
  **Note**

  If you are using Cosign, use Cosign version 2.0.0 and above. Using OCI 1.1 with earlier versions of Cosign required adding the following feature flag to your system configuration file:

  ```
  export COSIGN_EXPERIMENTAL=1
  ```

  For more information, see the <Anchor label="Cosign Changelog" target="_blank" href="https://github.com/sigstore/cosign/blob/main/CHANGELOG.md#v200">Cosign Changelog</Anchor>.
</Callout>

2. To verify that Referrers API is activated on an image, when pushing an image with a subject field, make sure that the response contains the following header with the SHA256 digest for the referenced image:

   ```
   OCI-Subject: <DIGEST_OR_TAG>
   ```

# OCI Limitations in Artifactory

* **Xray Scanning**: Currently, Xray scans are only supported for container images that follow OCI and Docker image specification. Other content types wrapped in OCI, like WASM and other payloads, are not supported. For more information, see <Anchor label="Xray" target="_blank" href="/security/docs/xray">Xray</Anchor>.