OpenShift RestAPI等价于oc标记

OpenShift RestAPI等价于oc标记,rest,docker,openshift,Rest,Docker,Openshift,OpenShift RestAPI与oc tag some.docker.regeriy some image tag:latest的等价物是什么 从“帮助”页面: Tag existing images into image streams The tag command allows you to take an existing tag or image from an image stream, or a Docker image pull spec, and set it as t

OpenShift RestAPI与oc tag some.docker.regeriy some image tag:latest的等价物是什么

从“帮助”页面:

Tag existing images into image streams 

The tag command allows you to take an existing tag or image from an image stream, or a Docker image pull spec, and set
it as the most recent image for a tag in 1 or more other image streams. It is similar to the 'docker tag' command, but
it operates on image streams instead. 

Pass the --insecure flag if your external registry does not have a valid HTTPS certificate, or is only served over HTTP.
Pass --scheduled to have the server regularly check the tag for updates and import the latest version (which can then
trigger builds and deployments). Note that --scheduled is only allowed for Docker images.

Usage:
  oc tag [--source=SOURCETYPE] SOURCE DEST [DEST ...] [flags]

回答我自己的问题供将来参考: 在cli上运行命令,但添加
--loglevel=8
。(即,
oc tag some.docker.regiery some image tag:latest--loglevel=8


然后,您可以确切地看到使用了什么API调用以及使用了什么参数,并且您可以复制这些参数!:)

您是否尝试过使用
--loglevel=6
运行
oc tag
命令?这应该显示足够多的API命令,让您了解它在做什么,以便可以重新创建。我正在尝试,有没有办法查看正在设置的数据(正文)?回答我自己的问题its
--loglevel=8