Dockerfile RUN

1 개요[ | ]

Dockerfile RUN
구문 (shell 형식)
RUN <command>
구문 (exec 형식)
RUN ["executable", "param1", "param2"]

2 부분 예시[ | ]

RUN /bin/bash -c 'source $HOME/.bashrc; \
echo $HOME'
RUN /bin/bash -c 'source $HOME/.bashrc; echo $HOME'
RUN ["/bin/bash", "-c", "echo hello"]

3 전체 예시[ | ]

FROM ubuntu
RUN mkdir /myvol
RUN echo "hello world" > /myvol/greeting
VOLUME /myvol

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}