Overview of Linux: Using Docker

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this hands-on lab, you will be provided a single CentOS Linux instance.

Docker is preinstalled on this instance for your use.

You have been asked by management to learn more about Docker. They heard that using Docker is easy to get a Linux instance up and running to use.

To test this, you have been asked to start up an Ubuntu Linux container and then log in to it. This is to ensure the container is working and is an Ubuntu Linux instance.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Log In to the Provided Server and Ensure It Is Ready

You have been provided with a preconfigured server: a CentOS instance with Docker preinstalled.

Log in to the servers as cloud_user with the provided passwords to ensure you can log in.

Note: It may take a few minutes after the lab starts before you can use Docker. If you see a file called ready.txt in the home folder, then the lab is ready. If you don’t see this file, then log out, wait 2 minutes, and log back in so that your user has the correct permissions to run Docker.

If you get a permissions error when you run a Docker command, log out and log back in again.

Using Docker, Run an Ubuntu Container

Use the commands required to start an Ubuntu container. It will need to be downloaded as the image will not already be installed.

Connect to the Ubuntu Container and Test It Is Working

Test being able to connect to the container, and test it is an Ubuntu container.

Note: You may combine this step and the previous step — that is acceptable.

Once you have confirmed, you are finished with this hands-on lab.

Additional Resources

You have been asked by management to learn more about Docker. They heard that using Docker is easy to get a Linux instance up and running to use.

To test this, you have been asked to start up an Ubuntu Linux container and then log in to it. This is to ensure the container is working and is an Ubuntu Linux instance.

You have been provided with a CentOS 7 Linux instance that has Docker preinstalled.

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?