Pulling an image and running a container
I am borrowing this recipe from the next chapter to introduce some concepts. Don't worry if you don't find all the explanation in this recipe. We'll cover all the topics in detail later in this chapter or in the next few chapters. For now, let's pull an image and run it. We'll also get familiar with Docker architecture and its components in this recipe.
Getting ready
Get access to a system with Docker installed.
How to do it…
- To pull an image, run the following command:
$ docker pull fedora
- List the existing images by using the following command:
$ docker images
- Create a container using the pulled image and list ...
Get DevOps: Puppet, Docker, and Kubernetes now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.