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

Re: Start container which needs env's



Den,

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
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.openshift.redhat.com_openshiftmm_listinfo_users&d=CwICAg&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=8IlWeJZqFtf8Tvx1PDV9NsLfM_M0oNfzEXXNp-tpx74&m=60UePY86xVs1NjLZBFRHiiBY54VyqOf44whmSKC2v2M&s=_WN8v3KDRr_tVvulwUKq9Eh_Gj8blriQHhclDjH1W4M&e=


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