Difficulty: Beginner
Estimated Time: 10 minutes

After completing this scenario, users will be able to deploy and control an already defined container image.

#Concepts included in this scenario:

  • List available container images
  • Deploy a container image into an interactive container runtime
  • Deploy a container image into a detached container runtime
  • View deployed containers
  • Stop a container instances
  • Remove deployed container instances

Example Usecase:

You have been asked to deploy a container running a web based application onto a server in your environment. In addition to deploying it, you need to be able to start alternate copies and remove any non-running containers.

Author: Scott McBrien, Technical Content Manager (Red Hat)

Deploying Containers with Container Tools

Step 1 of 5

Step 1

Using the top terminal session, view the container images available.

podman images

REPOSITORY              TAG      IMAGE ID       CREATED        SIZE
localhost/rhel8-httpd   latest   c12e3720df7b   43 hours ago   499 MB

There is one container available in the local (localhost) repository, rhel8-httpd. If there were multiple updated iterations of the conatiner available, you would use the IMAGE ID to work with those that are not tagged as latest. Also, from this list you are able to see the size, on disk, of the container image.

Terminal
Terminal 2
Container Service