- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Customizing and Launching an Existing Container Image
In this hands-on lab scenario, you will be searching an image registries, pulling images, modifying containers, saving modified containers, and publishing a container image. Upon completion of this lab, you will have the knowledge and skills required to locate images, modify containers, and publish a new image to a registry.
Lab Info
Table of Contents
-
Challenge
Locate an Image and Run a Container
- Log in to
server-1with thecloud_useraccount. - Find the
nginximage and tag hosted on the private registryserver-1:5000. Search is disabled, and the registry requires authentication. - Pull the
nginximage from registryserver-1:5000. - Start a container using the
nginximage. Name the containerweb-dev, and map host port8081to container port80.
- Log in to
-
Challenge
Modify a Container and Push a New Image
- Copy the contents of the tar archive
/home/cloud_user/llama_cart.tartoweb-dev:/usr/share/nginx/html/. - Commit the container
web-devto a new image namedweb-devwith a tag ofv1. - Tag
web-dev:v1asserver-1:5000/llama-racing:v1. - Push the new image to the registry on
server-1:5000.
- Copy the contents of the tar archive
-
Challenge
Start a Container and Verify Changes
- Start a new container using the
server-1:5000/llama-racing:v1image. Name the new containerllama-racing-web, and map host port8080to host port8081. - Verify the containers and images by starting the container named
checker. Use the-ioption when starting the container. - Use a web browser to check the web page using the public IP address for
server-1and port8080.
- Start a new container using the
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.