In previous chapter, we learned how to install Docker on Windows, Mac OS, Linux, and Amazon EC2 cloud. So far, you should have Docker running on your machine and should be able to run the hello-world image in a container. In this chapter, we will dive deeper into the world of images and containers. Later, we will also cover image distribution-related terms, such as Docker repository, registry, and index. We are going to cover the following topics in this chapter:
Images
Layers
Containers
Saving changes to containers
Docker registry, repository, and index
Note that we will mainly use the shell (or command prompt in Windows) to execute Docker commands. You can always execute docker help
to get a description of the available commands. Executing docker help
with the name of specific command docker help pull
, for example, will display information about this command with a brief description of the available options:
Let's start by explaining in detail...