1

我正在尝试在 Alpine Java docker 映像上运行 Libsodium。

 RUN "apk update && apk upgrade"
 RUN "apk add --no-cache ca-certificates wget && update-ca-certificates"
 RUN "apk add --no-cache openssl build-base libffi libsodium"

但是当我运行容器时,Java 崩溃了。

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f0f25b65ceb, pid=22, tid=0x00007f0f265f7700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libc.so+0x1fceb]  __vdsosym+0x9
#
# Core dump written. Default location: //core or core.22
#
# An error report file with more information is saved as:
# //hs_err_pid22.log

运行 libsodium 需要哪些依赖项?

4

1 回答 1

1

无限使用 OpenJDK 或 OracleJDK

于 2017-07-02T18:24:40.530 回答