Oc run

From NovaOrdis Knowledge Base
Revision as of 23:02, 1 February 2018 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.