Bartosz Bierkowski - Low dose cloud

OpenShift CLI morsels: importing images

Usually I build images directly inside OpenShift. Sometimes it is useful to import an existing image into OpenShift’s ImageStream.

ImageStreams is a way of OpenShift to hold references to images. You can create one using:

The latest  tag now points to centos:centos7  image.

Another image can be imported to this stream using a different tag.

Both tags are now visible in the image stream.



You can read more about importing images at OpenShift documentation page: OpenShift Origin: Importing Tag and Image Metadata


The commands were executed using minishift and the following client/server versions of OpenShift.

oc v1.5.0-alpha.2+e4b43ee
client kubernetes v1.5.2+43a9be4
openshift v1.3.1
server kubernetes v1.3.0+52492b4


Thanks for reading the OpenShift morsels. To get updates about new articles, you can sign up to the newsletter below.

As a thank you message, you will also get access to OpenShift CLI CheatSheet listing most commonly used commands together with a short explanation.

Did you like the article?
Join the newsletter to receive notifications about new articles.
I respect your privacy.