1OC CREATE(1)                       June 2016                      OC CREATE(1)
2
3
4

NAME

6       oc create imagestreamtag - Create a new image stream tag.
7
8
9

SYNOPSIS

11       oc create imagestreamtag [OPTIONS]
12
13
14

DESCRIPTION

16       Create a new image stream tag
17
18
19       Image  streams  tags  allow  you  to track, tag, and import images from
20       other registries. They also define  an  access  controlled  destination
21       that  you  can push images to. An image stream tag can reference images
22       from many different registries and control how those images are  refer‐
23       enced by pods, deployments, and builds.
24
25
26       If  --resolve-local  is  passed,  the  image stream will be used as the
27       source when pods reference it by name. For example, if  stream  'mysql'
28       resolves  local names, a pod that points to 'mysql:latest' will use the
29       image the image stream points to under the "latest" tag.
30
31
32

OPTIONS

34       --allow-missing-template-keys=true
35           If true, ignore any errors in templates when a field or map key  is
36       missing  in  the  template.  Only applies to golang and jsonpath output
37       formats.
38
39
40       --annotation=[]
41           Set an annotation on this image stream tag.
42
43
44       --dry-run=false
45           If true, only print the object that would be sent, without  sending
46       it.
47
48
49       --from=""
50           Use  the  provided  image  stream  tag or image stream image as the
51       source: [<namespace>/]name[:<tag>|@<id>]
52
53
54       --from-image=""
55           Use the provided remote image with this tag.
56
57
58       --insecure=false
59           Allow importing from registries  that  are  not  fully  secured  by
60       HTTPS.
61
62
63       -o, --output=""
64           Output  format. One of: json|yaml|name|template|go-template|go-tem‐
65       plate-file|templatefile|jsonpath|jsonpath-file.
66
67
68       --reference=false
69           If true, the tag value will be used whenever the image  stream  tag
70       is referenced.
71
72
73       --reference-policy=""
74           If  set to 'Local', referenced images will be pulled from the inte‐
75       grated registry. Ignored when reference is true.
76
77
78       --scheduled=false
79           If set the remote source of this image will be periodically checked
80       for imports.
81
82
83       --template=""
84           Template  string  or  path  to template file to use when -o=go-tem‐
85       plate, -o=go-template-file. The template format is golang  templates  [
86http://golang.org/pkg/text/template/#pkg-overview⟩].
87
88
89

OPTIONS INHERITED FROM PARENT COMMANDS

91       --allow_verification_with_non_compliant_keys=false
92           Allow  a  SignatureVerifier  to  use  keys  which  are  technically
93       non-compliant with RFC6962.
94
95
96       --alsologtostderr=false
97           log to standard error as well as files
98
99
100       --application_metrics_count_limit=100
101           Max number of application metrics to store (per container)
102
103
104       --as=""
105           Username to impersonate for the operation
106
107
108       --as-group=[]
109           Group to impersonate for the operation, this flag can  be  repeated
110       to specify multiple groups.
111
112
113       --azure-container-registry-config=""
114           Path  to the file containing Azure container registry configuration
115       information.
116
117
118       --boot_id_file="/proc/sys/kernel/random/boot_id"
119           Comma-separated list of files to check for boot-id. Use  the  first
120       one that exists.
121
122
123       --cache-dir="/builddir/.kube/http-cache"
124           Default HTTP cache directory
125
126
127       --certificate-authority=""
128           Path to a cert file for the certificate authority
129
130
131       --client-certificate=""
132           Path to a client certificate file for TLS
133
134
135       --client-key=""
136           Path to a client key file for TLS
137
138
139       --cloud-provider-gce-lb-src-cidrs=130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16
140           CIDRs opened in GCE firewall for LB traffic proxy  health checks
141
142
143       --cluster=""
144           The name of the kubeconfig cluster to use
145
146
147       --container_hints="/etc/cadvisor/container_hints.json"
148           location of the container hints file
149
150
151       --containerd="unix:///var/run/containerd.sock"
152           containerd endpoint
153
154
155       --context=""
156           The name of the kubeconfig context to use
157
158
159       --default-not-ready-toleration-seconds=300
160           Indicates   the   tolerationSeconds   of   the    toleration    for
161       notReady:NoExecute  that is added by default to every pod that does not
162       already have such a toleration.
163
164
165       --default-unreachable-toleration-seconds=300
166           Indicates the tolerationSeconds  of  the  toleration  for  unreach‐
167       able:NoExecute  that  is  added  by  default to every pod that does not
168       already have such a toleration.
169
170
171       --docker="unix:///var/run/docker.sock"
172           docker endpoint
173
174
175       --docker-tls=false
176           use TLS to connect to docker
177
178
179       --docker-tls-ca="ca.pem"
180           path to trusted CA
181
182
183       --docker-tls-cert="cert.pem"
184           path to client certificate
185
186
187       --docker-tls-key="key.pem"
188           path to private key
189
190
191       --docker_env_metadata_whitelist=""
192           a comma-separated list of environment variable keys that  needs  to
193       be collected for docker containers
194
195
196       --docker_only=false
197           Only report docker containers in addition to root stats
198
199
200       --docker_root="/var/lib/docker"
201           DEPRECATED:  docker  root is read from docker info (this is a fall‐
202       back, default: /var/lib/docker)
203
204
205       --enable_load_reader=false
206           Whether to enable cpu load reader
207
208
209       --event_storage_age_limit="default=24h"
210           Max length of time for which to store events (per type). Value is a
211       comma  separated  list  of  key  values, where the keys are event types
212       (e.g.: creation, oom) or "default" and the value is a duration. Default
213       is applied to all non-specified event types
214
215
216       --event_storage_event_limit="default=100000"
217           Max  number  of  events to store (per type). Value is a comma sepa‐
218       rated list of key values, where the keys are event  types  (e.g.:  cre‐
219       ation,  oom)  or  "default"  and  the  value  is an integer. Default is
220       applied to all non-specified event types
221
222
223       --global_housekeeping_interval=0
224           Interval between global housekeepings
225
226
227       --housekeeping_interval=0
228           Interval between container housekeepings
229
230
231       --insecure-skip-tls-verify=false
232           If true, the server's certificate will not be checked for validity.
233       This will make your HTTPS connections insecure
234
235
236       --kubeconfig=""
237           Path to the kubeconfig file to use for CLI requests.
238
239
240       --log-flush-frequency=0
241           Maximum number of seconds between log flushes
242
243
244       --log_backtrace_at=:0
245           when logging hits line file:N, emit a stack trace
246
247
248       --log_cadvisor_usage=false
249           Whether to log the usage of the cAdvisor container
250
251
252       --log_dir=""
253           If non-empty, write log files in this directory
254
255
256       --logtostderr=true
257           log to standard error instead of files
258
259
260       --machine_id_file="/etc/machine-id,/var/lib/dbus/machine-id"
261           Comma-separated  list  of  files  to  check for machine-id. Use the
262       first one that exists.
263
264
265       --match-server-version=false
266           Require server version to match client version
267
268
269       -n, --namespace=""
270           If present, the namespace scope for this CLI request
271
272
273       --request-timeout="0"
274           The length of time to wait before giving  up  on  a  single  server
275       request. Non-zero values should contain a corresponding time unit (e.g.
276       1s, 2m, 3h). A value of zero means don't timeout requests.
277
278
279       -s, --server=""
280           The address and port of the Kubernetes API server
281
282
283       --stderrthreshold=2
284           logs at or above this threshold go to stderr
285
286
287       --storage_driver_buffer_duration=0
288           Writes in the storage driver will be buffered  for  this  duration,
289       and committed to the non memory backends as a single transaction
290
291
292       --storage_driver_db="cadvisor"
293           database name
294
295
296       --storage_driver_host="localhost:8086"
297           database host:port
298
299
300       --storage_driver_password="root"
301           database password
302
303
304       --storage_driver_secure=false
305           use secure connection with database
306
307
308       --storage_driver_table="stats"
309           table name
310
311
312       --storage_driver_user="root"
313           database username
314
315
316       --token=""
317           Bearer token for authentication to the API server
318
319
320       --user=""
321           The name of the kubeconfig user to use
322
323
324       -v, --v=0
325           log level for V logs
326
327
328       --version=false
329           Print version information and quit
330
331
332       --vmodule=
333           comma-separated  list  of pattern=N settings for file-filtered log‐
334       ging
335
336
337

EXAMPLE

339                # Create a new image stream tag based on an image on a remote registry
340                oc create imagestreamtag mysql:latest --from-image=myregistry.local/mysql/mysql:5.0
341
342
343
344

SEE ALSO

346       oc-create(1),
347
348
349

HISTORY

351       June 2016, Ported from the Kubernetes man-doc generator
352
353
354
355Openshift                  Openshift CLI User Manuals             OC CREATE(1)
Impressum