docker compose: Error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted
Got it solved by re-mounting the /tmp to give the volume permission to execute (it was accessible with read-only). So this solved: sudo mount /tmp -o remount,exec