title: user: Current not implemented on linux/amd64 with golang using docker scratch
body: <p>I have used <a href="https://blog.codeship.com/building-minimal-docker-containers-for-go-applications/" rel="nofollow">this</a> tutorial to compile my go app to run on container derived from scratch. </p>
  
  <p>My go code uses <code>user.Current()</code> from <code>os/user</code>. When I use the technique from the blog post I get the following error when running the container:</p>
  
  <pre><code>user: Current not implemented on linux/amd64
  </code></pre>
  
  <p>To elaborate more:</p>
  
  <p>This is the command used to compile:</p>
  
  <pre><code>CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
  </code></pre>
  
  <p>This is the Dockerfile used to create the image (<code>scratch</code> based):</p>
  
  <pre><code>FROM scratch
  ADD ca-certificates.crt /etc/ssl/certs/
  ADD main /
  ENTRYPOINT ["/main"]
  </code></pre>
  
  <p>This is the command used to run the container:</p>
  
  <pre><code>sudo docker run -it -v /var/run/docker.sock:/var/run/docker.sock --rm 813
  </code></pre>
  
  <p>Did anyone encounter this? Any solution?</p>