Oc run: Difference between revisions
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
Create and run a particular image in a container(s). | Create and run a particular image in a container(s). | ||
oc run shelly -n pizzaparty-dev --image=openshift3/ose-deployer --command=true -- bash -c 'while true; do sleep 1; done' | |||
oc run shelly -n pizzaparty-dev --image=openshift3/ose-deployer --command=true -- bash -c 'while true; do sleep 1; done' | |||
oc run tomcat --image=docker.io/novaordis/tomcat:latest --limits=cpu=200m,memory=400Mi --requests=cpu=100m,memory=200Mi | |||
This command creates a new deployment configuration, similarly to how [[oc new-app]] does. |
Latest revision as of 23:02, 1 February 2018
External
Internal
Overview
Create and run a particular image in a container(s).
oc run shelly -n pizzaparty-dev --image=openshift3/ose-deployer --command=true -- bash -c 'while true; do sleep 1; done'
oc run tomcat --image=docker.io/novaordis/tomcat:latest --limits=cpu=200m,memory=400Mi --requests=cpu=100m,memory=200Mi
This command creates a new deployment configuration, similarly to how oc new-app does.