Join the discussion
Question 23/26
You want to push a new image in the Oracle Cloud Infrastructure (OCI) Registry. Which two actions do you need to perform?
Correct Answer: A,B
Explanation
Pushing Images Using the Docker CLI:
You use the Docker CLI to push images to Oracle Cloud Infrastructure Registry.
To push an image, you first use the docker tag command to create a copy of the local source image as a new image (the new image is actually just a reference tothe existing source image). As a name for the new image, you specify the fully qualified path to the target location in Oracle Cloud Registry where you want to push the image, optionally including the name of a repository.
For example, assume you have a local image named acme-web-app:latest. Let's say you want to push this image to Oracle Cloud Infrastructure Registry with a name of acme-web-app:version2.0.test into a repository called project01 in the Ashburn region of the acme-dev tenancy. When you use the docker tag command, you'd name the new image with the fully qualified path to its destination, in the format <region-key>.ocir.io/<tenancy-namespace>/<repo-name>/<image-name>:<tag>. So in this case, you'd name the new image iad.ocir.io/ansh81vru1zp/project01/acme-web-app:version2.0.test. Subsequently, when you use the docker push command, the image's name ensures it is pushed to the correct destination.
To push images to Oracle Cloud Infrastructure Registry using the Docker CLI:
If you already have an auth token, go to the next step. Otherwise:
In the top-right corner of the Console, open the Profile menu () and then click User Settings to view the

details.
On the Auth Tokens page, click Generate Token.
Enter a friendly description for the auth token.Avoid entering confidential information.
Click Generate Token. The new auth token is displayed.
Copy the auth token immediately to a secure location from where you can retrieve it later, because you won't see the auth token again in the Console.
Close theGenerate Token dialog.
References:
https://docs.cloud.oracle.com/en-us/iaas/Content/Registry/Tasks/registrypushingimagesusingthedockercli.htm
Pushing Images Using the Docker CLI:
You use the Docker CLI to push images to Oracle Cloud Infrastructure Registry.
To push an image, you first use the docker tag command to create a copy of the local source image as a new image (the new image is actually just a reference tothe existing source image). As a name for the new image, you specify the fully qualified path to the target location in Oracle Cloud Registry where you want to push the image, optionally including the name of a repository.
For example, assume you have a local image named acme-web-app:latest. Let's say you want to push this image to Oracle Cloud Infrastructure Registry with a name of acme-web-app:version2.0.test into a repository called project01 in the Ashburn region of the acme-dev tenancy. When you use the docker tag command, you'd name the new image with the fully qualified path to its destination, in the format <region-key>.ocir.io/<tenancy-namespace>/<repo-name>/<image-name>:<tag>. So in this case, you'd name the new image iad.ocir.io/ansh81vru1zp/project01/acme-web-app:version2.0.test. Subsequently, when you use the docker push command, the image's name ensures it is pushed to the correct destination.
To push images to Oracle Cloud Infrastructure Registry using the Docker CLI:
If you already have an auth token, go to the next step. Otherwise:
In the top-right corner of the Console, open the Profile menu () and then click User Settings to view the

details.
On the Auth Tokens page, click Generate Token.
Enter a friendly description for the auth token.Avoid entering confidential information.
Click Generate Token. The new auth token is displayed.
Copy the auth token immediately to a secure location from where you can retrieve it later, because you won't see the auth token again in the Console.
Close theGenerate Token dialog.
References:
https://docs.cloud.oracle.com/en-us/iaas/Content/Registry/Tasks/registrypushingimagesusingthedockercli.htm
Add Comments
- Other Question (26q)
- Q1. Your organization uses a federated identity provider to login to your Oracle Cloud Infrast...
- Q2. You are developing a polyglot serverless application using Oracle Functions. Which languag...
- Q3. You are developing a serverless application with Oracle Functions. Your function needs to ...
- Q4. You are processing millions of files in an Oracle Cloud Infrastructure (OCI) Object Storag...
- Q5. Which two are benefits of distributed systems?...
- Q6. Which two arerequired to enable Oracle Cloud Infrastructure (OCI) Container Engine for Kub...
- Q7. You have been asked to create a stateful application deployed in Oracle Cloud Infrastructu...
- Q8. How can you find details of the tolerations field for the sample YAML file below? (Exhibit...
- Q9. Which two statements are true for service choreography?...
- Q10. Which is NOT a supported SDK on Oracle Cloud Infrastructure (OCI)?...
- Q11. In a Linux environment, what is the default locations of the configuration file that Oracl...
- Q12. You are building a container image and pushing it to the Oracle Cloud Infrastructure Regis...
- Q13. You have written a Node.js function and deployed it to Oracle Functions. Next, you need to...
- Q14. Which pattern can help you minimize the probability of cascading failures in your system d...
- Q15. Which statement accurately describes Oracle Cloud Infrastructure (OCI) Load Balancer integ...
- Q16. You are implementing logging in your services that will be running in Oracle Cloud Infrast...
- Q17. A pod security policy (PSP) is implemented in your Oracle Cloud Infrastructure Container E...
- Q18. Which concepthe following steps reference Console instructionsCloud Infrastructure Resourc...
- Q19. What is the minimum amount of storage that a persistent volume claim can obtain InOracle C...
- Q20. You are deploying an API via Oracle Cloud Infrastructure (OCI) API Gateway and you want to...
- Q21. What is the difference between blue/green and canary deployment strategies?...
- Q22. Which is NOT a valid option to execute a function deployed on Oracle Functions?...
- Q23. You want to push a new image in the Oracle Cloud Infrastructure (OCI) Registry. Which two ...
- Q24. Who is responsiblefor patching, upgrading and maintaining the worker nodes in Oracle Cloud...
- Q25. A service you are deploying to Oracle infrastructure (OCI) Container En9ine for Kubernetes...
- Q26. You are developing a serverless applicationwith Oracle Functions. You have created a funct...
