0
我在Raspberry Pi3上安裝了Docker。 我想安裝「註冊表」圖像。因爲我沒有在ARM中找到它,所以我構建了一個AMR版本。Sh:在高山碼頭上找不到文件
我從混帳https://github.com/docker/distribution/
重新編譯二進制我得到一個功能二進制:
# registry --version
src_docker/go/bin/registry github.com/docker/distribution v2.6.0+unknown
然後我離開了混帳https://github.com/docker/distribution-library-image定製Dockerfile。
FROM arm32v6/alpine:3.5
RUN set -ex \
&& 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"]
我當然想用我編譯的二進制代替「註冊表/註冊表」。
我製作圖片:
docker build . -t ikise_arm/registry
但是,當我執行的圖像沒有找到二進制
# docker run -ti ikise_arm/registry:latest
/entrypoint.sh: exec: line 10: registry: not found
如果我禁用入口點和探索我覺得biary,但不能將文件執行
# docker run -ti ikise_arm/registry:latest
/# ls -al /bin/r*
lrwxrwxrwx 1 root root 12 Mar 2 20:19 /bin/reformime -> /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 -> /bin/busybox
lrwxrwxrwx 1 root root 12 Mar 2 20:19 /bin/rm -> /bin/busybox
lrwxrwxrwx 1 root root 12 Mar 2 20:19 /bin/rmdir -> /bin/busybox
lrwxrwxrwx 1 root root 12 Mar 2 20:19 /bin/run-parts -> /bin/busybox
/# /bin/registry
sh: /bin/registry: not found
你知道問題出在哪裏嗎?