title: Environment variables from Docker are not passed to Spring
body: <p>I try to dockerize simple java application.</p>
  
  <p>my <code>Dockerfile</code>:</p>
  
  <pre><code>FROM adoptopenjdk/openjdk11:alpine
  COPY build/libs/*.jar app.jar
  ENTRYPOINT java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
  EXPOSE 8080
  </code></pre>
  
  <p>In my bean definition file I try to log properties:</p>
  
  <pre><code>    beans {
          bean {
              logger.info { "System env: " + env.systemEnvironment }
              // ...
          }
      }
  </code></pre>
  
  <p>but when I call:</p>
  
  <pre><code>docker run 123 --env foo=bar 
  </code></pre>
  
  <p>It results in <code>foo</code> not being visible from java.</p>
  
  <p>However if I run my application from Idea and pass environment variables directly it works as a charm.</p>
  
  <p>Am I missing something? How I can make values passed in <code>env</code> available for java?</p>