Skip to main content

Sign in to opcr.io

note

This assumes that you've created an opcr.io account using your GitHub account.

Just like with docker login, the policy CLI requires you to sign in to an OCIv2-compliant registry. To sign in to the opcr.io registry, use the GitHub account you registered with, and a GitHub personal access token (PAT) as your password.

note

You can create a GitHub PAT on this page.

policy login -u <GitHub-account> -p <GitHub-PAT>

Options#

-u <GitHub-account>: specify the GitHub account as the OPCR user

-p <GitHub-PAT>: specify a GitHub personal access token (PAT) as the OPCR password

--password-stdin: read the password from stdin

Example#

echo $GITHUB_PAT | policy login -u ogazitt --password-stdin