title: Docker environment variable not making it through on run command to shell script
body: <p>I am trying to do exactly as the answers here</p>
  <p><a href="https://stackoverflow.com/questions/37904682/how-do-i-use-docker-environment-variable-in-entrypoint-array">How do I use Docker environment variable in ENTRYPOINT array?</a></p>
  <p>but for some reason, it's not working and here is my deploy.sh script..</p>
  <pre><code>#!/bin/bash
  #IF ANY command fails, fail the script
  set -e
  echo &quot;Deploying $@&quot;
  </code></pre>
  <p>This is my Docker file</p>
  <pre><code>FROM gcr.io/google.com/cloudsdktool/cloud-sdk:alpine
  ENV SERVICE=&quot;default&quot;
  RUN mkdir -p ./monobuild
  COPY . ./monobuild/
  WORKDIR &quot;/monobuild&quot;
  ENTRYPOINT ./deploy.sh &quot;${SERVICE}&quot;
  </code></pre>
  <p>This is my docker run command where I try to feed in SERVICE. ( I would prefer to fail if there is no SERVICE supplied as well)</p>
  <pre><code>docker run gcr.io/orderly-gcp/prod-deploy -e SERVICE=blah
  </code></pre>
  <p>My output however when I run that command is simply</p>
  <pre><code>Deploying default
  </code></pre>
  <p>I am unsure why I follow that sample SO post and this is still not working?</p>