OC-IMAGE-SERVE(1)
β¨ 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"β ahost:portto 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
- nixos 26.05: openshift 4.19.0-202505210330
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms