Bug 1302512
| Summary: | oc tag does not work as our document | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Qi Yong <yoqi> |
| Component: | Image Registry | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED ERRATA | QA Contact: | Wei Sun <wsun> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.1.0 | CC: | aos-bugs, jkaur, jokerman, mmccomas, tdawson, wili |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-12 16:27:25 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Qi Yong
2016-01-28 02:55:02 UTC
What you're looking for is --alias option to oc tag. I've create is python and then tagged it twice:
oc tag python:latest python:normal
oc tag python:latest python:alias --alias
and this is what I got:
spec:
tags:
- from:
kind: DockerImage
name: centos/python-34-centos7
name: latest
- from:
kind: ImageStreamImage
name: python@sha256:ec180c95fe33723f843355b461827cfbef2e7a19b987f7799e029df99d66fdbf
name: regular
- from:
kind: ImageStreamTag
name: python:latest
name: alias
Verified using the following version:
$ openshift version
openshift v3.1.1.6
kubernetes v1.1.0-origin-1107-g4c8e6f4
etcd 2.1.2
Result:
oc tag python:3.4 python:normal
oc tag python:3.4 python:alias --alias
oc get is python -o yaml
from:
kind: DockerImage
name: centos/python-34-centos7:latest
name: "3.4"
- from:
kind: ImageStreamTag
name: python:3.4
name: alias
- from:
kind: ImageStreamTag
name: "3.4"
name: latest
- from:
kind: ImageStreamImage
name: python@sha256:ec180c95fe33723f843355b461827cfbef2e7a19b987f7799e029df99d66fdbf
name: normal
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2016:1064 |