You want to push a new image in the Oracle Cloud Infrastructure (OCI) Registry.
Which two actions do you need to perform? (Choose two.)
Click on the arrows to vote for the correct answer
A. B. C. D. E.AB.
https://docs.cloud.oracle.com/en-us/iaas/Content/Registry/Tasks/registrypushingimagesusingthedockercli.htmTo push a new image in the Oracle Cloud Infrastructure (OCI) Registry, you need to perform the following two actions:
A. Assign a tag via Docker CLI to the image: First, you need to assign a tag to the Docker image using the Docker CLI. This tag uniquely identifies the image within the repository. You can do this by running the command docker tag <image-name> <registry-name>/<repository-name>/<image-name>:<tag-name>
where <image-name>
is the name of the Docker image, <registry-name>
is the name of your OCI Registry, <repository-name>
is the name of your OCI repository and <tag-name>
is the tag that you want to assign to the image.
B. Generate an auth token to complete the authentication via Docker CLI: Next, you need to generate an auth token to authenticate with the OCI Registry. You can do this by using the OCI CLI to create a new auth token. Once the auth token is generated, you can use it with the Docker CLI to authenticate and push the Docker image to the OCI Registry.
The other answer choices are not correct:
C. Generating an API signing key is not required for pushing a Docker image to the OCI Registry.
D. Assigning an OCI defined tag via OCI CLI to the image is not required. You can use any tag name that you want.
E. Generating an OCI tag namespace in your repository is also not required for pushing a Docker image to the OCI Registry.