Tuesday 4 June 2019

Docker pull: Pull an image from docker hub


‘docker pull’ command is used to pull an image from docker hub.

$docker pull --help

Usage: docker pull [OPTIONS] NAME[:TAG|@DIGEST]

Pull an image or a repository from a registry

Options:
  -a, --all-tags                Download all tagged images in the repository
      --disable-content-trust   Skip image verification (default true)

Pull the latest image
Syntax
docker pull {image_name}
docker pull {image_name:tag_name}

Example
docker pull ubuntu
docker pull ubuntu:16.04


If you do not specify the tag, then pull command downloads the image with latest tag.


Previous                                                 Next                                                 Home

No comments:

Post a Comment