title: Sh : file not found on alpine Docker image
body: <p>I installed Docker on my Raspberry Pi3.
  I want to install the "registry" image. As I do not find it in ARM, I have built an AMR version.</p>
  
  <p>I recompiled the binary from the git <a href="https://github.com/docker/distribution/" rel="nofollow noreferrer">https://github.com/docker/distribution/</a></p>
  
  <p>I get a functional binary:</p>
  
  <pre><code># registry --version
  src_docker/go/bin/registry github.com/docker/distribution v2.6.0+unknown
  </code></pre>
  
  <p>Then I left the git <a href="https://github.com/docker/distribution-library-image" rel="nofollow noreferrer">https://github.com/docker/distribution-library-image</a> to customize the Dockerfile.</p>
  
  <pre><code>FROM arm32v6/alpine:3.5
  
  RUN set -ex \
     &amp;&amp; apk add --no-cache ca-certificates apache2-utils
  
  COPY ./registry/registry /bin/registry
  COPY ./registry/config-example.yml /etc/docker/registry/config.yml
  
  VOLUME ["/var/lib/registry"]
  EXPOSE 5000
  
  COPY docker-entrypoint.sh /entrypoint.sh
  ENTRYPOINT ["/entrypoint.sh"]
  
  CMD ["/etc/docker/registry/config.yml"]
  </code></pre>
  
  <p>I have of course to replace the "registry / registry" by the binary that I compiled.</p>
  
  <p>I build image :</p>
  
  <pre><code>docker build . -t ikise_arm/registry
  </code></pre>
  
  <p>But when I execute the image it does not find the binary</p>
  
  <pre><code># docker run -ti ikise_arm/registry:latest
  /entrypoint.sh: exec: line 10: registry: not found
  </code></pre>
  
  <p>If I disable the ENTRYPOINT and explore the files I find the biary but impossible to execute</p>
  
  <pre><code># docker run -ti ikise_arm/registry:latest
  / # ls -al /bin/r*
  lrwxrwxrwx    1 root     root            12 Mar  2 20:19 /bin/reformime -&gt; /bin/busybox
  -rwxr-xr-x    1 root     root      19940588 Jun 14 12:27 /bin/registry
  lrwxrwxrwx    1 root     root            12 Mar  2 20:19 /bin/rev -&gt; /bin/busybox
  lrwxrwxrwx    1 root     root            12 Mar  2 20:19 /bin/rm -&gt; /bin/busybox
  lrwxrwxrwx    1 root     root            12 Mar  2 20:19 /bin/rmdir -&gt; /bin/busybox
  lrwxrwxrwx    1 root     root            12 Mar  2 20:19 /bin/run-parts -&gt; /bin/busybox
  / # /bin/registry
  sh: /bin/registry: not found
  </code></pre>
  
  <p>Do you have any idea where the problem may come from?</p>