msaraiva / alpine-erlang

Minimal Erlang/Elixir docker images with Alpine Linux
205 stars 6 forks source link

"Unable to load crypto library." on docker run #7

Open yuchunc opened 8 years ago

yuchunc commented 8 years ago

Hi! Thank you so much for the Dockerfile template!! It was awesome to get my first image build following the hello_phoenix example!

However, when I attempted to do docker run on the image. I came across this error.

{error_logger,{{2016,2,17},{7,15,51}},"Unable to load crypto library. Failed with error:~n\"~p,
~s\"~nOpenSSL might not be installed on this system.~n",[load_failed,"Failed to load NIF library: 
'Error loading shared library /content_ui/lib/crypto-3.6.1/priv/lib/crypto.so: Exec format error'"]}

I can't seem to get pass this error, even with building the image from alpine. If it is not too much hassle, would you mind giving me some directions on how to resolve this issue?

mrluc commented 8 years ago

I also get this! Even ensuring that there was a rel/relx.config file with correct contents.

msaraiva commented 8 years ago

Just saw the problem. I'll take a look at it today. Thanks for reporting it.

msaraiva commented 8 years ago

Please try this:

mrluc commented 8 years ago

I continued to have issues -- but in the end I just went back to what I had been doing, which was building in Alpine linux with your helpful elixirgcc image, using separate Dockerfile.build/Dockerfile files for building and running.