container 의 entrypoint에서 여러개의 명령을 실행 할 때 각 명령어는 “;”으로 구분하고 sh 를 사용한다.

CMD[“sh”, “-c”, “{;를 구분자로 명령 줄 입력}”]

[example]
#install.sh를 실행하고 nginx를 foreground로 기동한다.
CMD[“sh”, “-c”, “/files/install.sh;/usr/sbin/nginx -g ‘daemon off;’“]

Leave a Reply

Your email address will not be published. Required fields are marked *