- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Running Your First Podman Container on RHEL
Every journey has to start somewhere. In this lab, we jump right into the deep end and look at how to launch and interact with our first container! Once complete, you'll know how to start, interact, and stop a container.

Lab Info
Table of Contents
-
Challenge
Run Your First Podman Container
Let's try the following:
- Check for running containers as
cloud_user
androot
- Check for local container images
- Search for
httpd-24
container images - Run the
docker.io/centos/httpd-24-centos8
image- In detached mode, with a
tty
to run commands
- In detached mode, with a
- Check for running containers as
cloud_user
again - Check for local container images again
- Check the contents of the
/etc/redhat-release
file on the server - Open a
bash
shell in our container- Check the contents of the
/etc/redhat-release
file in the container - Try accessing the Apache web server running on port
8080
usingcurl
- Exit the container's
bash
shell
- Check the contents of the
- Try accessing the Apache web server running on port
8080
usingcurl
from the server- This will fail as we haven't published port
8080
on the container
- This will fail as we haven't published port
- Check for running containers as
-
Challenge
Clean Up
Let's clean up after ourselves!
Do the following:
- Check for running containers as
cloud_user
again - Stop our running container
- Check for running containers as
cloud_user
again and verify it's stopped - Remove the container
- Check for running containers as
cloud_user
again and verify it's removed - Check for local container images again
- Remove our
httpd-24-centos8:latest
image from local storage - Check for local container images again
- Check for running containers as
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.