@@ -100,7 +100,8 @@ Optional Flags:
100
100
101
101
--runtime <RUNTIME> Use a different container runtime [docker, podman, skopeo] (Default: docker)
102
102
--dump-credentials Print registry credentials to stdout to copy/paste into container tools
103
- --copy-omit-image-name Omit the image name from the destination path when copying
103
+ --copy-omit-image-name Omit the image name from the destination path when copying (requires -c, --copy)
104
+ --copy-custom-tag <TAG> Use custom tag when copying image (requires -c, --copy)
104
105
--get-image-path Get the full image path including the registry, repository, and latest tag for the specified SENSOR_TYPE
105
106
--get-pull-token Get the pull token of the selected SENSOR_TYPE for Kubernetes
106
107
--get-cid Get the CID assigned to the API Credentials
@@ -131,7 +132,8 @@ Help Options:
131
132
| ` --runtime ` | ` $CONTAINER_TOOL ` | ` docker ` (Optional) | Use a different container runtime [ docker, podman, skopeo] . ** Default is Docker** . |
132
133
| ` --dump-credentials ` | ` $CREDS ` | ` False ` (Optional) | Print registry credentials to stdout to copy/paste into container tools |
133
134
| ` --get-image-path ` | N/A | ` None ` | Get the full image path including the registry, repository, and latest tag for the specified ` SENSOR_TYPE ` . |
134
- | ` --copy-omit-image-name ` | N/A | ` None ` | Omit the image name from the destination path when copying |
135
+ | ` --copy-omit-image-name ` | N/A | ` None ` | Omit the image name from the destination path when copying (requires -c, --copy) |
136
+ | ` --copy-custom-tag <TAG> ` | N/A | ` None ` | Use custom tag when copying image (requires -c, --copy) |
135
137
| ` --get-pull-token ` | N/A | ` None ` | Get the pull token of the selected ` SENSOR_TYPE ` for Kubernetes. |
136
138
| ` --get-cid ` | N/A | ` None ` | Get the CID assigned to the API Credentials. |
137
139
| ` --list-tags ` | ` $LISTTAGS ` | ` False ` (Optional) | List all tags available for the selected sensor |
@@ -267,6 +269,37 @@ Results in: `myregistry.com/mynamespace/falcon-sensor:<tag>`
267
269
268
270
Results in: ` myregistry.com/mynamespace/myfalcon-sensor:<tag> `
269
271
272
+ #### Example copying an image with a custom tag
273
+
274
+ The following example will copy the ` falcon-container ` image to a different registry using a custom tag instead of the default version tag:
275
+
276
+ ``` shell
277
+ ./falcon-container-sensor-pull.sh \
278
+ --client-id < FALCON_CLIENT_ID> \
279
+ --client-secret < FALCON_CLIENT_SECRET> \
280
+ --type falcon-container \
281
+ --copy myregistry.com/mynamespace \
282
+ --copy-custom-tag latest \
283
+ --runtime docker
284
+ ```
285
+
286
+ Results in: ` myregistry.com/mynamespace/falcon-container:latest `
287
+
288
+ You can also combine this with other options:
289
+
290
+ ``` shell
291
+ ./falcon-container-sensor-pull.sh \
292
+ --client-id < FALCON_CLIENT_ID> \
293
+ --client-secret < FALCON_CLIENT_SECRET> \
294
+ --type falcon-sensor \
295
+ --copy myregistry.com/mynamespace/custom-sensor \
296
+ --copy-omit-image-name \
297
+ --copy-custom-tag v1.2.3-production \
298
+ --runtime skopeo
299
+ ```
300
+
301
+ Results in: ` myregistry.com/mynamespace/custom-sensor:v1.2.3-production `
302
+
270
303
#### Example copying multi-arch image for a specific platform
271
304
272
305
The following example will copy the ` falcon-sensor ` multi-arch image for the ` aarch64 ` platform to a different registry using Skopeo.
0 commit comments