2016-05-19 2 views
3

ドッカーの経験はほとんどありませんが、gitlab-ciを使用して私のライブラリの自動ビルドを作成しようとしています。ドッカー画像。ドッカーのビルドに失敗しました(rpcエラー:コード= 2 desc = "ociランタイムエラー:exec形式エラー")

raspberrypi用にビルドしたいので、ドッカー画像(here)が見つかりました。Dockerfileでgithubリポジトリを作成しました。

次のステップでは、私はdockerhubで自動ビルドを作成しましたが、ビルドは次のエラーで失敗します。

Build failed: rpc error: code = 2 desc = "oci runtime error: exec format error" 

私はGoogleの上の任意のドキュメントの助けとも何も見つけることができませんでしたので、私は聞いていますのよ:
このエラーの原因を知っていますか?

マイDockerfile:

FROM resin/rpi-raspbian:wheezy-20160518 
MAINTAINER [email protected] 

RUN apt-get update && apt-get install -y \ 
     automake \ 
     cmake \ 
     g++ \ 
     git \ 
     libboost-all-dev \ 
     libi2c-dev \ 
     libjsoncpp-dev \ 
     libpcre3-dev \ 
     libssl-dev \ 
     libtool \ 
     make \ 
     openssl \ 
     pkg-config \ 
     wget \ 
     && apt-get clean 

とドッキングウィンドウからログ:

Starting build of index.docker.io/piotrlewicki/gitlab-ci_rpi-image:latest... 
Step 1 : FROM resin/rpi-raspbian:wheezy-20160518 ---> aefd4527968f 
Step 2 : MAINTAINER [email protected] 
---> Running in a463aace5c5a 
---> c5eedf34e43c Removing intermediate container a463aace5c5a 
Step 3 : RUN apt-get update && apt-get install -y automake cmake g++ git libboost-all-dev libi2c-dev libjsoncpp-dev libpcre3-dev libssl-dev libtool make openssl pkg-config wget && apt-get clean 
---> Running in 318905fb5329 Removing intermediate container 318905fb5329 
rpc error: code = 2 desc = "oci runtime error: exec format error" 
+0

私はまったく同じDockerfileを立ち上げて、私は何のエラーので、今までに何を持っていません。それ以降は 'ENTRYPOINT'や' CMD'を持っていますか?このエラーは、シバンを持たない 'ENTRYPOINT'スクリプトにもっと関連しています。http://stackoverflow.com/questions/36653486/docker-error-response-from-daemon-rpc-error-code-2-desc-oci-runtime- erro –

+0

これまでに3行のコメントがありましたが、後で削除しましたが、結果は同じでした。私はもう一度やり直してみます - 多分何かがキャッシュされていました... – lewiatan

+0

まだ同じ問題です。ビルドの出力は次のとおりです:https://hub.docker.com/r/piotrlewicki/gitlab-ci_rpi-image/builds/bcqn4ozzr4xx7ef8tg8adrb/ – lewiatan

答えて

8

は、それは問題ではないのです。
Docker Hubは、x86以外のアーキテクチャのイメージビルドをサポートしていません。
私はARMでした。

はドッカーサポートからの応答下:

The image that your build is based upon, resin/rpi-raspbian:wheezy-20160518, is an ARM-based image. Cross architecture image builds are not supported on Docker Hub. Only x86-based images can be built in Docker Hub/Cloud.

+0

途中でサポートされていると思われますが、まだすべてのツールに対応しています:https: //integratedcode.us/2016/04/22/a-step-towards-multi-platform-docker-images/ – jkp

関連する問題