Add tags for an external image
To enable Red Hat OpenShift Container Platform resources to track and consume container images sourced from external registries, add tags to the corresponding image streams. This action integrates external image content securely into your cluster’s local image management system.
Procedure
-
Add tags pointing to internal or external images, by using the
oc tagcommand for all tag-related operations:$ oc tag <repository/image> <image-name:tag>For example, this command maps the
docker.io/python:3.6.0image to the3.6tag in thepythonimage stream.$ oc tag docker.io/python:3.6.0 python:3.6Example outputTag python:3.6 set to docker.io/python:3.6.0.If the external image is secured, you must create a secret with credentials for accessing that registry.