Docker Community Forums

Share and learn in the Docker community.

Trying to get a binary running in alpine

Hi! I’m relatively new to docker and I wanted to install PlexPy, but then I realised that a script I use needs a binary. So I tried to copy the binary into the docker container which is based on alpine, but it didn’t run. I checked ldd and there were a lot of errors. After installing qt-x11 there were only two errors left.
ldd hyperion-remote /lib64/ld-linux-x86-64.so.2 (0x555a76af5000) libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x7f3e0be3f000) libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0x7f3e0baf2000) libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x7f3e0b5fe000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f3e0b2ae000) libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x7f3e0b09b000) libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x555a76af5000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x7f3e0adb0000) libpng16.so.16 => /usr/lib/libpng16.so.16 (0x7f3e0ab83000) libz.so.1 => /lib/libz.so.1 (0x7f3e0a96d000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x7f3e0a6be000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x7f3e0a47e000) libSM.so.6 => /usr/lib/libSM.so.6 (0x7f3e0a276000) libICE.so.6 => /usr/lib/libICE.so.6 (0x7f3e0a05d000) libXrender.so.1 => /usr/lib/libXrender.so.1 (0x7f3e09e53000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x7f3e09c18000) libXext.so.6 => /usr/lib/libXext.so.6 (0x7f3e09a08000) libX11.so.6 => /usr/lib/libX11.so.6 (0x7f3e096e5000) libssl.so.1.0.0 => /lib/libssl.so.1.0.0 (0x7f3e0947d000) libcrypto.so.1.0.0 => /lib/libcrypto.so.1.0.0 (0x7f3e0905f000) libpcre.so.1 => /usr/lib/libpcre.so.1 (0x7f3e08e06000) libintl.so.8 => /usr/lib/libintl.so.8 (0x7f3e08bf8000) libffi.so.6 => /usr/lib/libffi.so.6 (0x7f3e089f0000) libuuid.so.1 => /lib/libuuid.so.1 (0x7f3e087ec000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0x7f3e085cc000) libxcb.so.1 => /usr/lib/libxcb.so.1 (0x7f3e083ac000) libXau.so.6 => /usr/lib/libXau.so.6 (0x7f3e081a9000) libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x7f3e07fa3000) Error relocating hyperion-remote: __sprintf_chk: symbol not found Error relocating hyperion-remote: __memcpy_chk: symbol not found

What do I need to do? The binary is hyperion-remote. https://github.com/hyperion-project/hyperion I also tried compiling it, but I always got errors. Also running it with a glibc alpine docker didn’t work.
Thanks in advance for the help