To extract the image from an OCI package, run:
gdcloud artifacts extract SOURCE DESTINATION \
--image-name IMAGE_NAME
The SOURCE path must point to a directory containing the OCI bundle.
This command writes the extracted image to the output path specified in DESTINATION. This output path must point to an empty directory.
The image name is the full name of the container image. For example, gpc-system-storage/storage:9.13.1P1.
可选标志
--docker-executable Set this flag if you want to extract the image to a docker executable tarball (Optional)
--image-name string Full name of the image.
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eThe \u003ccode\u003egdcloud artifacts extract\u003c/code\u003e command extracts an image from an OCI package and writes its layers to files.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSOURCE\u003c/code\u003e argument must be a directory containing the OCI bundle, and \u003ccode\u003eDESTINATION\u003c/code\u003e must be an empty directory where the extracted image will be written.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003e--image-name\u003c/code\u003e flag specifies the full name of the container image to extract from the OCI package.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003egdcloud artifacts extract SOURCE DESTINATION --image-name IMAGE_NAME\u003c/code\u003e to run the command, extracting the specified image to the destination directory.\u003c/p\u003e\n"]]],[],null,["# gdcloud artifacts extract\n\nNAME\n----\n\ngdcloud artifacts extract - Extract an image from OCI packages and write layers to files.\n\nSYNOPSIS\n--------\n\n gdcloud artifacts extract SOURCE DESTINATION [flags]\n\n### EXAMPLES\n\n To extract the image from an OCI package, run:\n\n gdcloud artifacts extract SOURCE DESTINATION \\\n --image-name IMAGE_NAME\n\n The SOURCE path must point to a directory containing the OCI bundle.\n This command writes the extracted image to the output path specified in DESTINATION. This output path must point to an empty directory.\n The image name is the full name of the container image. For example, gpc-system-storage/storage:9.13.1P1.\n\n### OPTIONAL FLAGS\n\n --docker-executable Set this flag if you want to extract the image to a docker executable tarball (Optional)\n --image-name string Full name of the image.\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."]]