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 thehome
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.