title: docker: flag provided but not defined
body: <p>I am using <a href="https://github.com/timescale/prometheus-postgresql-adapter" rel="nofollow noreferrer">prometheus-postgresql-adapter</a> for my project and I am trying to run it in Docker.</p>
  
  <p>And I am going through all of their documentation:</p>
  
  <pre><code>go get -u github.com/timescale/prometheus-postgresql-adapter
  
  dep ensure
  
  make
  </code></pre>
  
  <p>When i wrote <code>make</code> command it threw me this error:</p>
  
  <blockquote>
    <p>GOOS=mingw64_nt-10.0 GOARCH=amd64 CGO_ENABLED=0 go build -a -installsuffix cgo --ldflags '-w' -o prometheus-postgresql-adapter main.go
    cmd/go: unsupported GOOS/GOARCH pair mingw64_nt-10.0/amd64
    make: *** [prometheus-postgresql-adapter] Error 2</p>
  </blockquote>
  
  <p>so i ran it as <code>make OS=windows</code></p>
  
  <p>then</p>
  
  <pre><code>make docker-image
  
  make docker-push ORGANIZATOIN=myusername
  </code></pre>
  
  <p>But when I am trying to run that image with this code:</p>
  
  <pre><code> docker run --name prometheus_postgresql_adapter --link pg_prometheus -d -p 9201:9201 \
   timescale/prometheus-postgresql-adapter:master \
   -pg-host=pg_prometheus \
   -pg-prometheus-log-samples
  </code></pre>
  
  <p>And got that error</p>
  
  <blockquote>
    <p>flag provided but not defined: -pg-host</p>
  </blockquote>
  
  <p>I even changed <code>-pg-host=pg_prometheus</code> to <code>pg-password='mypassword'</code> since the default host is localhost still get that error:</p>
  
  <blockquote>
    <p>flag provided but not defined: -pg-password</p>
  </blockquote>
  
  <p>when I am trying to remove <code>-pg-host</code> or <code>-pg-password</code> and let only the <code>pg-prometheus-log-samples</code> still get that error":</p>
  
  <blockquote>
    <p>flag provided but not defined: -pg-prometheus-log-samples</p>
  </blockquote>
  
  <p>Anyone has any idea why is not recognizing these flag values?</p>
  
  <p>Also i tried writing <code>-pg-password='mypassword'</code> as <code>-pg-password=mypassword</code> and even <code>-pg-password mypassword</code> but still the same error comes up.</p>
  
  <p>p.s. I am doing all of this in windows</p>