Member-only story
Docker Commands — Part 1
Docker is a popular platform for developing, shipping, and running applications in containers. Here are some basic Docker commands that you might find useful:
👉 docker version: The docker version
command provides information about the Docker client and server versions that are installed on your system. Here's how you can use it:
docker --version
👉 docker info: The docker info
command provides detailed information about the Docker system, including containers, images, volumes, networks, and various configuration details. Here's how you can use it:
docker info
👉 docker pull [image_name]: Download a Docker image from a registry (e.g., Docker Hub).
docker pull [OPTIONS] IMAGE_NAME[:TAG]
[OPTIONS]
: This is where you can specify various options to customize the behavior of the pull operation. Common options include--all-tags
to pull all tags for the given image,--platform
to specify the platform for which to pull the image, etc.IMAGE_NAME[:TAG]
: This is the name of the Docker image you want to pull from the registry. You can optionally specify a tag to pull a specific version of the image. If you omit the tag, Docker will default to pulling thelatest
tag.
For example, to pull the nginx
image from Docker Hub, you can use:
docker pull nginx