Lab 17: Docker Getting Started Exercise

 

Objective

To get practice using with Docker Desktop by completing the Docker "Getting Started" tutorial.


 

Starting the Tutorial

For this lab, you should pull the docker/getting-started image from Docker Hub, run it as a container, and then go through the tutorial contained therein. You can do this in one of two ways:

  1. Search for "getting started" in the Docker Hub tab of Docker desktop, then pull the image and launch it as a container. In the optional port tab, put the number 80.
  2. Run the command docker run -d -p 80:80 docker/getting-started.

Once the container is running, it will launch a web server which you can connect to by navigating to http://localhost in a web browser. You should see a tutorial page called "Getting Started" in your browser. The web server serving this page is running inside the container you just installed.


 

Task

For this lab, you should complete the tutorial which will guide you through:


 

Submitting

Submit the URL for your docker hub profile which you created during the "Sharing Our App" section of the Docker tutorial. It should look like https://hub.docker.com/u/USERNAME (where USERNAME is your username on Docker Hub).