Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing image tag in OpenShift Deployment with CLI

is there a set of commands to change the docker image name/tag in an existing deployment in a project in an OpenShift cluster?

like image 883
DlekaShelHaHaim Avatar asked May 01 '26 20:05

DlekaShelHaHaim


1 Answers

You can use the oc set image command to change the image for a container in an existing Deployment / DeploymentConfig:

oc set image dc/myapp mycontainer=nginx:1.9.1

Try oc set image --help for some examples.

like image 154
Simon Avatar answered May 04 '26 20:05

Simon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!