OpenShift - Tag Image Stream

by
Jeremy Canfield |
Updated: October 16 2024
| OpenShift articles
An image contains the code used to create a deployment. Then, a deployment can be created from an image, which should then create a replica set (which is the number of pods that should be created), and then the pods should be created.
The oc get imagestreams command can be used to list the image streams in your currently selected project / namespace. Notice in this example that the s2i-python-container image stream does not contain any TAGS.
~]$ oc get imagestreams
NAME IMAGE REPOSITORY TAGS UPDATED
imagestream.image.openshift.io/python-39 image-registry.openshift-image-registry.svc:5000/my-project/python-39 latest 4 minutes ago
imagestream.image.openshift.io/s2i-python-container image-registry.openshift-image-registry.svc:5000/my-project/s2i-python-container
The oc tag command can be used to TAG an image stream. In this example, the 2i-python-container image stream is tagged "latest".
~]$ oc tag imagestream.image.openshift.io/s2i-python-container s2i-python-container:latest
Tag s2i-python-container:latest set to imagestream.image.openshift.io/s2i-python-container.
Did you find this article helpful?
If so, consider buying me a coffee over at