사용자 도구

사이트 도구


docker:build

문서의 이전 판입니다!


Docker Image Build

Docker Image Build 하기 및 올리기

한 컨테이너에서 다중 프로세스 실행

ENTRYPOINT

Timezone 보정

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

JAVA JMX

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로 노출시킨다.

Latest 올리기

docker/build.1487295584.txt.gz · 마지막으로 수정됨: 2017/02/17 10:09 저자 kwon37xi