Forrest logo
back to the skopeo tool

skopeo:tldr:6d0fc

skopeo: Download an image from a registry.
$ skopeo copy docker://${registry_hostname}/${image:tag} dir:${path-to-directory}
try on your machine

The command skopeo copy docker://${registry_hostname}/${image:tag} dir:${path-to-directory} is used to copy a Docker image from a registry to a local directory.

Here is a breakdown of the command:

  • skopeo: This is the command-line interface for working with container images and registries.
  • copy: This is the sub-command that instructs skopeo to perform the copy operation.
  • docker://${registry_hostname}/${image:tag}: This is the source parameter, specifying the Docker image to be copied. It consists of:
    • docker://: This is the protocol prefix indicating that the image is from a Docker registry.
    • ${registry_hostname}: This is the hostname of the Docker registry from where the image will be fetched.
    • ${image:tag}: This specifies the name and tag of the Docker image to be copied.
  • dir:${path-to-directory}: This is the destination parameter, specifying the directory where the Docker image will be copied to. It consists of:
    • dir:: This indicates that the destination is a local directory.
    • ${path-to-directory}: This is the path to the directory where the image will be stored.

Overall, the command allows you to fetch a Docker image from a registry and save it to a local directory for further use.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the skopeo tool