名称¶
podman-artifact-add - 向本地存储添加 OCI 工件
简介¶
podman artifact add 名称 文件 [文件]…
描述¶
从本地文件系统向本地存储添加 OCI 工件。您必须提供至少一个文件来创建工件,但也可以添加多个文件。
选项¶
--annotation=annotation=value¶
为指定图像或工件的条目设置注释。
注意:为添加的每个文件设置注释。
--append, -a¶
将文件追加到现有工件。此选项不能与 --type 选项一起使用。
--file-type¶
设置工件文件的媒体类型,而不是允许检测确定类型
--help¶
打印使用说明。
--type¶
为要添加的工件设置类型。
示例¶
向工件添加单个文件
$ podman artifact add quay.io/myartifact/myml:latest /tmp/foobar.ml
0fe1488ecdef8cc4093e11a55bc048d9fc3e13a4ba846efd24b5a715006c95b3
向工件添加多个文件
$ podman artifact add quay.io/myartifact/myml:latest /tmp/foobar1.ml /tmp/foobar2.ml
1487acae11b5a30948c50762882036b41ac91a7b9514be8012d98015c95ddb78
为工件设置注释
$ podman artifact add --annotation date=2025-01-30 quay.io/myartifact/myml:latest /tmp/foobar1.ml
将文件追加到现有工件
$ podman artifact add --append quay.io/myartifact/tarballs:latest /tmp/foobar.tar.gz
覆盖要添加的工件的媒体类型
$ podman artifact add --file-type text/yaml quay.io/myartifact/descriptors:latest /tmp/info.yaml
另请参阅¶
历史¶
2025 年 1 月,最初由 Brent Baude bbaude@redhat.com 编译