11% podman-artifact-add 1
22
33## NAME
4- podman\-artifact\-add - Add an OCI artifact to the local store
4+ podman\-artifact\-add - Add an OCI artifact to local artifact store
55
66## SYNOPSIS
7- **podman artifact add** * name* *file* [*file*] ...
7+ **podman artifact add** [*options*] *artifact- name* *file* [*file* ...]
88
99## DESCRIPTION
1010
@@ -35,6 +35,11 @@ Set the media type of the artifact file instead of allowing detection to determi
3535
3636Print usage statement.
3737
38+ #### **--replace**
39+
40+ If an artifact with the same name already exists, replace and remove it. The default is **false**.
41+ This option cannot be used with the **--append** option.
42+
3843#### **--type**
3944
4045Set a type for the artifact being added.
@@ -48,25 +53,29 @@ $ podman artifact add quay.io/myartifact/myml:latest /tmp/foobar.ml
48530fe1488ecdef8cc4093e11a55bc048d9fc3e13a4ba846efd24b5a715006c95b3
4954```
5055
51- Add multiple files to an artifact
56+ Add OCI artifact to the store with type:
57+
5258```
53- $ podman artifact add quay.io/myartifact/myml:latest /tmp/foobar1.ml /tmp/foobar2.ml
54- 1487acae11b5a30948c50762882036b41ac91a7b9514be8012d98015c95ddb78
59+ $ podman artifact add --artifact-type application/com.example.ai --file-type application/vnd.gguf quay.io/myimage/myartifact:latest /home/user/model.gguf
5560```
5661
57- Set an annotation for an artifact
62+ Replace an existing artifact with the same name
63+
5864```
59- $ podman artifact add --annotation date=2025-01-30 quay.io/myartifact/myml:latest /tmp/foobar1.ml
65+ $ podman artifact add quay.io/myartifact/myml:latest /tmp/foobar.ml
66+ 0fe1488ecdef8cc4093e11a55bc048d9fc3e13a4ba846efd24b5a715006c95b3
6067```
6168
62- Append a file to an existing artifact
69+ Add multiple files to an artifact
6370```
64- $ podman artifact add --append quay.io/myartifact/tarballs:latest /tmp/foobar.tar.gz
71+ $ podman artifact add quay.io/myartifact/myml:latest /tmp/foobar1.ml /tmp/foobar2.ml
72+ 1487acae11b5a30948c50762882036b41ac91a7b9514be8012d98015c95ddb78
6573```
6674
67- Override the media type of the artifact being added
75+ Add files to an existing OCI artifact
76+
6877```
69- $ podman artifact add --file-type text/yaml quay.io/myartifact/descriptors :latest /tmp/info .yaml
78+ $ podman artifact add --append quay.io/myimage/myartifact :latest /home/user/config .yaml
7079```
7180
7281
0 commit comments