In this hands-on lab, we are going to use Cockpit to create user accounts and manage the life cycle of a Docker image. The first step will be to log in to Cockpit and create two user accounts in the `Accounts` module. This will be followed by confirming the `Containers` module is installed and then download the container image for testing. The last step will be to use the `Containers` module and simulate a container life cycle using the downloaded image.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Confirm the required modules are available
- Launch a web browser and log in to the Cockpit console on port 9090.
- Confirm the
Accounts
andContainers
modules are available.
- Create two Linux user accounts
- Select the
Accounts
module. - Create Linux accounts for
Michael Bolton
andSamir Nagheenanajar
, setting the passwords toDevSupport123
.
- Select the
- Download a Docker image for testing and start an instance
- Select the
Containers
module. - Download a container image using the Get new image functionality.
- Search for
nginx
in the image search field. Select the image and download it.
- Select the
- Manage the lifecycle of a Docker container using the downloaded image
- Start a container using the
nginx
image. - Set the Container Name to
nginx_test
and accept the default configuration. - View the nginx_test container details and confirm it is running properly.
- Stop and delete the nginx_test container.
- Delete the nginx image.
- Start a container using the