gdcloud artifacts oci build-from-tar - Package a Tar file into an OCI artifact
概要
gdcloud artifacts oci build-from-tar SRC DEST [flags]
選用旗標
--index-annotations stringToString Add annotations to index in OCI image (default [])
--layer-annotations stringToString Add annotations to image layer in OCI image (default [])
--layer-media-type string Layer media type (default "application/vnd.oci.image.layer.v1.tar+gzip")
--manifest-annotations stringToString Add annotations to image manifest in OCI image (default [])
--manifest-config-media-type string Manifest config media type (default "application/vnd.gpc.tar-file.config.v1alpha1+json")
--version string Version of tar file (default "1.0.0")
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[[["\u003cp\u003eThis command packages a tar file into an OCI (Open Container Initiative) artifact for containerization.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egdcloud artifacts oci build-from-tar\u003c/code\u003e command uses a source (SRC) tar file and a destination (DEST) to create the artifact.\u003c/p\u003e\n"],["\u003cp\u003eVarious annotations can be added to the index, layer, and manifest of the OCI image.\u003c/p\u003e\n"],["\u003cp\u003eUsers can define the media type for the image layer and manifest config with the provided flags.\u003c/p\u003e\n"],["\u003cp\u003eThe version of the tar file being packaged can be specified, defaulting to "1.0.0".\u003c/p\u003e\n"]]],[],null,["# gdcloud artifacts oci build-from-tar\n\nNAME\n----\n\ngdcloud artifacts oci build-from-tar - Package a Tar file into an OCI artifact\n\nSYNOPSIS\n--------\n\n gdcloud artifacts oci build-from-tar SRC DEST [flags]\n\n### OPTIONAL FLAGS\n\n --index-annotations stringToString Add annotations to index in OCI image (default [])\n --layer-annotations stringToString Add annotations to image layer in OCI image (default [])\n --layer-media-type string Layer media type (default \"application/vnd.oci.image.layer.v1.tar+gzip\")\n --manifest-annotations stringToString Add annotations to image manifest in OCI image (default [])\n --manifest-config-media-type string Manifest config media type (default \"application/vnd.gpc.tar-file.config.v1alpha1+json\")\n --version string Version of tar file (default \"1.0.0\")\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-reference/gdcloud) page."]]