1
1
% podman-artifact-add 1
2
2
3
3
## 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
5
5
6
6
## SYNOPSIS
7
- **podman artifact add** * name* *file* [*file*] ...
7
+ **podman artifact add** [*options*] *artifact- name* *file* [*file* ...]
8
8
9
9
## DESCRIPTION
10
10
@@ -35,6 +35,11 @@ Set the media type of the artifact file instead of allowing detection to determi
35
35
36
36
Print usage statement.
37
37
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
+
38
43
#### **--type**
39
44
40
45
Set a type for the artifact being added.
@@ -48,25 +53,29 @@ $ podman artifact add quay.io/myartifact/myml:latest /tmp/foobar.ml
48
53
0fe1488ecdef8cc4093e11a55bc048d9fc3e13a4ba846efd24b5a715006c95b3
49
54
```
50
55
51
- Add multiple files to an artifact
56
+ Add OCI artifact to the store with type:
57
+
52
58
```
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
55
60
```
56
61
57
- Set an annotation for an artifact
62
+ Replace an existing artifact with the same name
63
+
58
64
```
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
60
67
```
61
68
62
- Append a file to an existing artifact
69
+ Add multiple files to an artifact
63
70
```
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
65
73
```
66
74
67
- Override the media type of the artifact being added
75
+ Add files to an existing OCI artifact
76
+
68
77
```
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
70
79
```
71
80
72
81
0 commit comments