Error installing dfx

I have the command RUN curl -fsSL https://internetcomputer.org/install.sh | sh in my docker, and in the last months it was running all good.
Now (in the last few days) it just started to shout ERROR: failed to solve: process "/bin/sh -c curl -fsSL https://internetcomputer.org/install.sh | sh" did not complete successfully: exit code: 1
Any idea what could be?

This is very little information to go off…

Can you have a look at this and see if this could be the cause?

I’m to assume it’s to do with dfx now asking you to confirm to proceed, I got the same error in my github action and this thread helped me solve it, take a look:

1 Like

Thank you, it worked. Basically I set up an ENV DFXVM_INIT_YES=true before calling the RUN curl -fsSL https://internetcomputer.org/install.sh | sh and it proceeds to install successfully.

ENV DFXVM_INIT_YES=true

RUN curl -fsSL https://internetcomputer.org/install.sh | sh

And manually add dfxPath = ‘/root/.local/share/dfx/bin’; to the envs interacting with the dfx cli.

3 Likes