title: Maxmind geoipupdate gets http 403 on docker run
body: <p>I am using <strong>maxmind GeoLite2</strong> binary database for geolocation services and I want to <strong>update</strong> this periodically.</p>
  <p>It works fine on updating through geoipupdate program installed via brew.
  However Maxmind provides a <a href="https://hub.docker.com/r/maxmindinc/geoipupdate" rel="nofollow noreferrer">docker image</a> to update db periodically.
  When I try to run docker command below,</p>
  <pre><code> docker run --env-file IdeaProjects/ip-geolocation-service/src/main/resources/application.properties  -v /Users/me/GeoIp maxmindinc/geoipupdate
  </code></pre>
  <p>With the <strong>environment file</strong> refers to application.properties,</p>
  <pre><code>GEOIPUPDATE_ACCOUNT_ID=12345
  GEOIPUPDATE_LICENSE_KEY=aaaaaaaaaa
  GEOIPUPDATE_EDITION_IDS=GeoIP2-Country
  </code></pre>
  <p>I gets the following <strong>error</strong>:</p>
  <pre><code># STATE: Creating configuration file at /etc/GeoIP.conf
  # STATE: Running geoipupdate
  error retrieving updates: error while getting database for GeoIP2-Country: unexpected HTTP status code: received HTTP status code: 403: Invalid product ID or subscription expired for GeoIP2-Country
  </code></pre>
  <p>Since my credentials is working on manual trigger, I wonder why it has not working on docker run? Any idea for spotting problem or anyone has faced with it?</p>