Public | Automated Build

Last pushed: a month ago
Short Description
alpine-java8
Full Description

docker run --rm ncc0706/alpine-java8 java -version

notice

如果运行在alpine linux时会出现错误,请更新alpine linux 内核,
这里我使用的是 Includes a vanilla kernel. Does not include grsec patch set. Suitable for debugging.

error

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00006fe239000000, 2555904, 1) failed; error='Operation not permitted' (errno=1)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 2555904 bytes for committing reserved memory.
# An error report file with more information is saved as:
# //hs_err_pid1.log

解决方案


# apk add paxctl && paxctl -cm $(which java) && apk del paxctl

Docker Pull Command
Owner
ncc0706
Source Repository