eos icon indicating copy to clipboard operation
eos copied to clipboard

docker build . -t eosio/eos fail

Open StephenLau007 opened this issue 8 years ago • 6 comments

When I run docker build . -t eosio/eos,it fail and output this log

Sending build context to Docker daemon 19.46 kB
Step 1 : FROM eosio/builder as builder
Error parsing reference: "eosio/builder as builder" is not a valid repository/tag

Dockerfile have some probllem?

FROM eosio/builder as builder

StephenLau007 avatar Mar 23 '18 04:03 StephenLau007

Can you check your version of Docker? you need to be in a recent version.

jeremi avatar Mar 23 '18 06:03 jeremi

I just build from docker version 1.12.6 and 1.13.1.

StephenLau007 avatar Mar 24 '18 02:03 StephenLau007

I'm using docker 17.03 and it works. Try to upgrade.

On Mar 24, 2018 10:20, "StephenLu" [email protected] wrote:

I just build from docker version 1.12.6 and 1.13.1.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/1786#issuecomment-375839795, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAlQWtvJ-7-GJAyaKd6K9O9WbxxQhopks5tha1-gaJpZM4S4LHO .

jeremi avatar Mar 24 '18 04:03 jeremi

Multi-stage builds (eosio/builder as builder) were introduced in Docker 17.05. Updating to the latest version of Docker should resolve your issue.

ericiles avatar Mar 24 '18 22:03 ericiles

@jeremi @ericiles thanks.I updated the Docker version 18.03.0-ce,so that start build eos in docker.

StephenLau007 avatar Apr 15 '18 12:04 StephenLau007

When I build the eos in docker,it can't build success. I meet this problem.It's the network problem?

Cloning into 'test/emscripten'...
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: clone of 'https://github.com/kripken/emscripten.git' into submodule path 'test/emscripten' failed
Failed to recurse into submodule path 'externals/binaryen'
The command '/bin/sh -c git clone -b master --depth 1 https://github.com/EOSIO/eos.git --recursive     && cd eos     && cmake -H. -B"/tmp/build" -GNinja -DCMAKE_BUILD_TYPE=Release -DWASM_ROOT=/opt/wasm -DCMAKE_CXX_COMPILER=clang++        -DCMAKE_C_COMPILER=clang -DCMAKE_INSTALL_PREFIX=/tmp/build  -DSecp256k1_ROOT_DIR=/usr/local     && cmake --build /tmp/build --target install' returned a non-zero code: 128

StephenLau007 avatar Apr 15 '18 12:04 StephenLau007