[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Start container which needs env's


There’s quite a few ways to set ENV vars.

Have a look at this documentation

It is also possible to include environmental variables as part of the deployment configuration as well as templates.

John Skarbek

On February 17, 2016 at 07:09:05, Den Cowboy (dencowboy hotmail com) wrote:

I've an image. When I want to start the image I have to define som env-variables:
How do I have to do this in OpenShift? Can I just add the --env also after the oc-command?

$ docker run --restart=always --name "nodejs" --env MOCK="x" --env BRANDS="x" --env PORT="8888" -d my-image:73

users mailing list
users lists openshift redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]