OC-IMAGE-SERVE(1)

πŸ“¦ version 4.19.0, in nixos 26.05

✨ oc image serve(1) ✨

okay bestie, buckle up πŸ’– this one is from the OpenShift CLI User Manuals β€” oc image serve, the June 2016 edition, ported from the Kubernetes man-doc generator. Let's get into it πŸŽ€


🌸 NAME 🌸

oc image serve β€” serve a container registry straight from images you've mirrored to disk. yes. a whole registry. on your laptop. iconic πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

oc image serve [OPTIONS]

πŸ’… DESCRIPTION πŸ’…

okay so this command serves a container registry. literally that's the whole vibe.

It starts up an HTTP or HTTPS server that hosts a local directory full of mirrored images 🫢. To fill that directory up, you use:

oc image mirror --dir=DIR SRC=DST

and the directory must have a v2 folder that contains repository sub directories. no v2 folder, no slay πŸ’€.

🚨 big warning bestie: no authentication or authorization checks are performed β€” none, zero, nada. So the source directory should only include content you actually want network users to see. like, fr fr. don't put your secrets in there πŸ™ˆ.

Experimental: this command is under active development and may change without notice. so... vibe check it before you depend on it 😭


✨ OPTIONS ✨

  • --dir="" β€” the directory to serve images from πŸ’–
  • --listen=":5000" β€” a host:port to listen on. defaults to *:5000 πŸŽ€
  • --tls-crt="" β€” path to a TLS certificate to secure this server with πŸ”’
  • --tls-key="" β€” path to a TLS private key to secure this server with πŸ”‘

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

these are the hand-me-downs from the parent command, and honestly they ate πŸ‘‘

  • --as="" β€” username to impersonate for the operation. user could be a regular user or a service account in a namespace πŸ’«
  • --as-group=[] β€” group to impersonate for the operation; this flag can be repeated to specify multiple groups 🫢
  • --as-uid="" β€” UID to impersonate for the operation
  • --cache-dir="/homeless-shelter/.kube/cache" β€” default cache directory πŸ—‚οΈ
  • --certificate-authority="" β€” path to a cert file for the certificate authority
  • --client-certificate="" β€” path to a client certificate file for TLS
  • --client-key="" β€” path to a client key file for TLS
  • --cluster="" β€” the name of the kubeconfig cluster to use
  • --context="" β€” the name of the kubeconfig context to use
  • --disable-compression=false β€” if true, opt-out of response compression for all requests to the server
  • --insecure-skip-tls-verify=false β€” if true, the server's certificate will not be checked for validity. this will make your HTTPS connections insecure 😬 (like, actually insecure, not in a cute way)
  • --kubeconfig="" β€” path to the kubeconfig file to use for CLI requests
  • --match-server-version=false β€” require server version to match client version
  • -n, --namespace="" β€” if present, the namespace scope for this CLI request
  • --profile="none" β€” name of profile to capture. one of (none|cpu|heap|goroutine|threadcreate|block|mutex) πŸ“Š
  • --profile-output="profile.pprof" β€” name of the file to write the profile to
  • --request-timeout="0" β€” the length of time to wait before giving up on a single server request. non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). a value of zero means don't timeout requests ⏳
  • -s, --server="" β€” the address and port of the Kubernetes API server
  • --tls-server-name="" β€” server name to use for server certificate validation. if it is not provided, the hostname used to contact the server is used
  • --token="" β€” bearer token for authentication to the API server πŸ”‘
  • --user="" β€” the name of the kubeconfig user to use
  • --warnings-as-errors=false β€” treat warnings received from the server as errors and exit with a non-zero exit code πŸ’€

πŸŽ€ SEE ALSO πŸŽ€


🧚 HISTORY 🧚

June 2016 β€” ported from the Kubernetes man-doc generator. vintage, honestly πŸ¦‹


and that's the whole page, bestie πŸ’œ written under Openshift for the Openshift CLI User Manuals, version-flavored OC IMAGE(1), dated June 2016 β€” go serve that registry, you absolute main character πŸŒŸπŸ’…

πŸ“¦ where this page comes from