|
59 | 59 |
|
60 | 60 | [options="nowrap"]
|
61 | 61 | ----
|
62 |
| - // Create an application based on the source code in the current git repository (with a public remote) and a Docker image |
| 62 | + // Create an application based on the source code in the current git repository (with a public remote) and a container image |
63 | 63 | $ oc new-app . --docker-image=repo/langimage
|
64 | 64 |
|
65 | 65 | // Create a Ruby application based on the provided [image]~[source code] combination
|
|
79 | 79 |
|
80 | 80 | // Create an application from a remote repository and specify a context directory
|
81 | 81 | $ oc new-app https://github.com/youruser/yourgitrepo --context-dir=src/build
|
82 |
| - |
| 82 | +
|
83 | 83 | // Create an application based on a template file, explicitly setting a parameter value
|
84 | 84 | $ oc new-app --file=./example/myapp/template.json --param=MYSQL_USER=admin
|
85 | 85 | ----
|
|
210 | 210 |
|
211 | 211 | [options="nowrap"]
|
212 | 212 | ----
|
213 |
| - // Create a build config based on the source code in the current git repository (with a public remote) and a Docker image |
| 213 | + // Create a build config based on the source code in the current git repository (with a public remote) and a container image |
214 | 214 | $ oc new-build . --docker-image=repo/langimage
|
215 | 215 |
|
216 | 216 | // Create a NodeJS build config based on the provided [image]~[source code] combination
|
|
240 | 240 | ====
|
241 | 241 |
|
242 | 242 |
|
243 |
| -== Imports images from a Docker registry |
| 243 | +== Imports images from a container registry |
244 | 244 |
|
245 | 245 | ====
|
246 | 246 |
|
|
278 | 278 | // Tag a specific image.
|
279 | 279 | $ oc tag openshift/ruby@sha256:6b646fa6bf5e5e4c7fa41056c27910e679c03ebe7f93e361e6515a9da7e258cc yourproject/ruby:tip
|
280 | 280 |
|
281 |
| - // Tag an external Docker image. |
| 281 | + // Tag an external container image. |
282 | 282 | $ oc tag --source=docker openshift/origin:latest yourproject/ruby:tip
|
283 | 283 |
|
284 | 284 | // Remove the specified spec tag from an image stream.
|
|
406 | 406 | // Remove all volumes for pod 'p1'
|
407 | 407 | $ oc volume pod/p1 --remove --confirm
|
408 | 408 |
|
409 |
| - // Remove volume 'v1' from deployment config 'registry' |
| 409 | + // Remove volume 'v1' from deployment config 'registry' |
410 | 410 | $ oc volume dc/registry --remove --name=v1
|
411 | 411 |
|
412 | 412 | // Unmount volume v1 from container c1 on pod p1 and remove the volume v1 if it is not referenced by any containers on pod p1
|
|
731 | 731 | ----
|
732 | 732 | // Show Merged kubeconfig settings.
|
733 | 733 | $ oc config view
|
734 |
| - |
| 734 | +
|
735 | 735 | // Show only local kubeconfig settings
|
736 | 736 | $ oc config view --local
|
737 |
| - |
| 737 | +
|
738 | 738 | // Get the password for the e2e user
|
739 | 739 | $ oc config view -o template --template='{{range .users}}{{ if eq .name "e2e" }}{{ index .user.password }}{{end}}{{end}}'
|
740 | 740 | ----
|
|
749 | 749 | ----
|
750 | 750 | // Set only the server field on the e2e cluster entry without touching other values.
|
751 | 751 | $ oc config set-cluster e2e --server=https://1.2.3.4
|
752 |
| - |
| 752 | +
|
753 | 753 | // Embed certificate authority data for the e2e cluster entry
|
754 | 754 | $ oc config set-cluster e2e --certificate-authority=~/.kube/e2e/kubernetes.ca.crt
|
755 |
| - |
| 755 | +
|
756 | 756 | // Disable cert checking for the dev cluster entry
|
757 | 757 | $ oc config set-cluster e2e --insecure-skip-tls-verify=true
|
758 | 758 | ----
|
|
768 | 768 | // Set only the "client-key" field on the "cluster-admin"
|
769 | 769 | // entry, without touching other values:
|
770 | 770 | $ oc config set-credentials cluster-admin --client-key=~/.kube/admin.key
|
771 |
| - |
| 771 | +
|
772 | 772 | // Set basic auth for the "cluster-admin" entry
|
773 | 773 | $ oc config set-credentials cluster-admin --username=admin --password=uXFGweU9l35qcif
|
774 |
| - |
| 774 | +
|
775 | 775 | // Embed client certificate data in the "cluster-admin" entry
|
776 | 776 | $ oc config set-credentials cluster-admin --client-certificate=~/.kube/admin.crt --embed-certs=true
|
777 | 777 | ----
|
|
798 | 798 | ----
|
799 | 799 | // Change the config context to use
|
800 | 800 | oc config use-context my-context
|
801 |
| - |
| 801 | +
|
802 | 802 | // Set the value of a config preference
|
803 | 803 | oc config set preferences.some true
|
804 | 804 | ----
|
|
0 commit comments