Deploying sample containers
Once you have a container host configured, you should check that you have set up your environment successfully and your container host can utilize containers. A really simple way to check that your container host is fully able to run containers is by downloading and running a simple container image. Docker publishes a useful Hello-World container image you can use. Or you can download and run one of the standard OS images.
Before you can run a container, you must acquire a container image. There are several ways to obtain images, as you see in this chapter. Using the docker
command, you can search and download images either to use directly or to use as the basis of a custom-built container. Docker maintains an online registry that contains a variety of container images for you to leverage.
This recipe demonstrates using the Docker registry to obtain images and then using those images locally. This recipe looks at some basic container management tasks and shows...