문서의 이전 판입니다!
Docker Image Build 하기 및 올리기
from Docker Container time & timezone (will not reflect changes)
ENV TZ=Asia/Seoul RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
JMX_PORT를 …port, …rmi.port 두 군데 지정해주고, hostname에 Host의 IP를 지정해준다.
-Dcom.sun.management.jmxremote=true \
-Dcom.sun.management.jmxremote.port=$JMX_PORT \
-Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Djava.rmi.server.hostname=$HOST_IP"
docker 실행시 JMX_PORT를 -p로 노출시킨다.