regclient
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

regctl image get-file

Synopsis

Go through each of the image layers searching for the requested file.

regctl image get-file <image_ref> <filename> [out-file] [flags]

Aliases

  • cat

Examples

# get the alpine-release file from the latest alpine image
regctl image get-file --platform local alpine /etc/alpine-release

Options

      --format string     Format output with go template syntax
  -p, --platform string   Specify platform (e.g. linux/amd64 or local)

Options from parent commands

      --host stringArray     Registry hosts to add (reg=registry,user=username,pass=password,tls=enabled)
      --logopt stringArray   Log options
      --user-agent string    Override user agent
  -v, --verbosity string     Log level (trace, debug, info, warn, error) (default "WARN")