title: Environment variable in PHP-docker container
body: <p>I want to show an env var in my docker container.
  The PHP script looks like this:</p>
  
  <pre><code>&lt;html&gt;
   &lt;head&gt;
    &lt;title&gt;Show Use of environment variables&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;
    &lt;?php
    print "env is: ".$_ENV["USER"]."\n";
    ?&gt;
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I use OpenShift to start the container. The PHP - container shows:</p>
  
  <pre><code>env is: 
  </code></pre>
  
  <p>Now I change the dc config of my container:</p>
  
  <pre><code>oc env dc/envar USER=Pieter
  deploymentconfig "envar" updated
  </code></pre>
  
  <p>When I access the container. The env var of USER is Pieter</p>
  
  <pre><code>docker exec -it 44a0f446ae36 bash
  bash-4.2$ echo $USER
  Pieter
  </code></pre>
  
  <p>But my script remains showing: "<code>env is:</code>" It does not fill in the variable.</p>