Docker Exercises
Docker Exercises#
Create and run a container of the
hello-world
image. What is printed on the console after you do that? Did Docker pull the image from the repository or was it already present on your system?Print all Docker images on your computer. How many are there? Then print all containers. How many are there? Do you have at least one container for each image? Do you have more than one container per image? If so, why?
Run the command
cat /etc/os-release
in an alpine container. What does it print?Run the following command
docker run -it --rm jdamerow/temperature-converter bash
. Then get a list of all the files in the/app
folder in the container. Then runpython convert.py
.
Take a screenshot of the output of each of the commands.