Q: 3
You are a DevOps engineer working on a project that requires you to push and pull Docker images to
and from Oracle Cloud Infrastructure Registry (Container Registry) using Docker CLI. You have been
given access to Container Registry and have installed Docker CLI on your local machine.
Which should you create and use to securely authenticate and store your Docker image in a private
Docker registry in OCI?
Options
Discussion
Option A is right, you need an Auth Token when logging into OCI's Container Registry with Docker CLI. The token works like a password for registry access, not your regular OCI password. I've seen similar questions on other Oracle exams too.
Its A for sure. OCI Auth Tokens are made for CLI authentication with private registries, you generate it in IAM and use as password when doing
docker login. SSH keys are more for compute access, not registry, and D is unrelated here. Pretty confident unless OCI changed something super recently.C or B. Seen some practice tests mention SSH keys or JWTs for OCI, but docs lean to Auth Token-worth reviewing Oracle's own guide before sticking to A every time.
I don’t think it’s B. A
A here, pretty sure. OCI Auth Tokens are specifically for authenticating Docker CLI to the Container Registry, you generate them in IAM and use them like a password with
docker login. Haven't seen any docs recommending JWT or SSH for this purpose, correct me if I'm missing something.C is not correct here, it's A. Docker CLI with OCI Container Registry needs an Auth Token, not an SSH key pair. OCI docs are clear on this for private registry access.
Be respectful. No spam.