File tree Expand file tree Collapse file tree 4 files changed +27
-8
lines changed Expand file tree Collapse file tree 4 files changed +27
-8
lines changed Original file line number Diff line number Diff line change @@ -2309,6 +2309,13 @@ Run a particular image on the cluster
2309
2309
2310
2310
# Start a single instance of nginx and keep it in the foreground, don't restart it if it exits.
2311
2311
oc run -i --tty nginx --image=nginx --restart=Never
2312
+
2313
+ # Start the nginx container using the default command, but use custom
2314
+ # arguments (arg1 .. argN) for that command.
2315
+ oc run nginx --image=nginx -- <arg1> <arg2> ... <argN>
2316
+
2317
+ # Start the nginx container using a different command and custom arguments
2318
+ oc run nginx --image=nginx --command -- <cmd> <arg1> ... <argN>
2312
2319
----
2313
2320
====
2314
2321
Original file line number Diff line number Diff line change @@ -250,6 +250,13 @@ foreground for an interactive container execution. You may pass 'run/v1' to
250
250
# Start a single instance of nginx and keep it in the foreground, don't restart it if it exits.
251
251
oc run \- i \-\- tty nginx \-\- image=nginx \-\- restart=Never
252
252
253
+ # Start the nginx container using the default command, but use custom
254
+ # arguments (arg1 .. argN) for that command.
255
+ oc run nginx \-\- image=nginx \-\- <arg1> <arg2> ... <argN>
256
+
257
+ # Start the nginx container using a different command and custom arguments
258
+ oc run nginx \-\- image=nginx \-\- command \-\- <cmd> <arg1> ... <argN>
259
+
253
260
.fi
254
261
.RE
255
262
Original file line number Diff line number Diff line change @@ -250,6 +250,13 @@ foreground for an interactive container execution. You may pass 'run/v1' to
250
250
# Start a single instance of nginx and keep it in the foreground, don't restart it if it exits.
251
251
openshift cli run \- i \-\- tty nginx \-\- image=nginx \-\- restart=Never
252
252
253
+ # Start the nginx container using the default command, but use custom
254
+ # arguments (arg1 .. argN) for that command.
255
+ openshift cli run nginx \-\- image=nginx \-\- <arg1> <arg2> ... <argN>
256
+
257
+ # Start the nginx container using a different command and custom arguments
258
+ openshift cli run nginx \-\- image=nginx \-\- command \-\- <cmd> <arg1> ... <argN>
259
+
253
260
.fi
254
261
.RE
255
262
Original file line number Diff line number Diff line change @@ -385,16 +385,14 @@ foreground for an interactive container execution. You may pass 'run/v1' to
385
385
%[1]s run nginx --image=nginx --overrides='{ "apiVersion": "v1", "spec": { ... } }'
386
386
387
387
# Start a single instance of nginx and keep it in the foreground, don't restart it if it exits.
388
- %[1]s run -i --tty nginx --image=nginx --restart=Never`
388
+ %[1]s run -i --tty nginx --image=nginx --restart=Never
389
389
390
- // TODO: uncomment these when arguments are delivered upstream
390
+ # Start the nginx container using the default command, but use custom
391
+ # arguments (arg1 .. argN) for that command.
392
+ %[1]s run nginx --image=nginx -- <arg1> <arg2> ... <argN>
391
393
392
- // Start the nginx container using the default command, but use custom
393
- // arguments (arg1 .. argN) for that command.
394
- //%[1]s run nginx --image=nginx -- <arg1> <arg2> ... <argN>
395
-
396
- // Start the nginx container using a different command and custom arguments
397
- //%[1]s run nginx --image=nginx --command -- <cmd> <arg1> ... <argN>`
394
+ # Start the nginx container using a different command and custom arguments
395
+ %[1]s run nginx --image=nginx --command -- <cmd> <arg1> ... <argN>`
398
396
)
399
397
400
398
// NewCmdRun is a wrapper for the Kubernetes cli run command
You can’t perform that action at this time.
0 commit comments