Connect Podman to Artifactory

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

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:

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 Allow Anonymous Access.

Connect Podman to Artifactory Using podman login

  1. Run the following command:

    podman login [JFrogPlatformURL]

    Where:

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

    For example:

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

Note

You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.

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:

{
	"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:

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

Note

You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.

Next steps: