Basic commands for the Docker user
This section talks about the basic command line for using Docker. In order to handle Docker containers, we need some commands for creating images, running containers, and so on.
In the Docker hub, there are already a number of images uploaded and available. If we need to use an image, we have to pull it to our localhost. The following command can be used to download images from Docker:
# docker pull <image_name>
For example, suppose you want to download the Ubuntu 14.04 official container, using the following command:
# docker pull ubuntu:14.04
We need to make sure that we specify the version name. Otherwise, whatever Ubuntu versions are available inside the Docker hub will be downloaded. If you want to download ...
Get OpenStack Object Storage (Swift) Essentials 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.