1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/images-imagestream-import.adoc
2025-12-09 15:41:15 +00:00

41 lines
1.2 KiB
Plaintext

// Module included in the following assemblies:
// * openshift_images/image-streams-managing.adoc
:_mod-docs-content-type: PROCEDURE
[id="images-imagestream-import_{context}"]
= Configuring periodic importing of image stream tags
[role="_abstract"]
To maintain up-to-date image definitions from an external container image registry, configure periodic importing of image stream tags. This process allows you to quickly re-import images for critical security updates by using the `--scheduled` flag.
.Procedure
. Schedule importing images:
+
[source,terminal]
----
$ oc tag <repository/image> <image-name:tag> --scheduled
----
+
For example:
+
[source,terminal]
----
$ oc tag docker.io/python:3.6.0 python:3.6 --scheduled
----
+
.Example output
[source,terminal]
----
Tag python:3.6 set to import docker.io/python:3.6.0 periodically.
----
+
This command causes {product-title} to periodically update this particular image stream tag. This period is a cluster-wide setting set to 15 minutes by default.
. Remove the periodic check, re-run above command but omit the `--scheduled` flag. This will reset its behavior to default.
+
[source,terminal]
----
$ oc tag <repositiory/image> <image-name:tag>
----