Oc run

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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.