Tagging and Saving an Image

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this lab, we will explore podman image tagging, modifying a container, saving an image, and pushing an image to a repository. After completing this lab, you will be able to create and tag an image with a custom tag, save it to a .tar file, and push the modified image to a repository.

*This lab is not approved or sponsored by Red Hat.*

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Modify the Existing Containers Default Web Page

Modify the default web page in the web-1 container to say Future Home of llama-rama enterprises.

Commit the Changes to a New Image and Tag the Image

The modified container should have the changes committed to a new image named localhost:5000/llama-rama-web. Tag the image as v1.0.

Create a .tar Archive of the New Image

Create a .tar archive of the image. The archive should be named llama-rama-web.tar.

Publish the New Image to a Local Registry

Publish the new image to the registry running on localhost:5000.

Additional Resources

In this scenario, you have been approached by a client wanting you to help them with modifying, saving, and publishing a container image.

They have an existing Nginx container running on a system. First, they want you to change the default web page in that container to say Future Home of llama-rama enterprises. This modified container should have the changes committed to a new image named localhost:5000/llama-rama-web.

The client would also like this new image to have a tag of v1.0.

Next, the client would also like this new image saved to a .tar archive named llama-rama-web.tar. The new image also needs to be pushed to a local registry running on port 5000 of the localhost so it can be used on other systems.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?