Docker에서 간단한 Flask 애플리케이션을 실행하려고합니다. 하지만 내 app.py 코드를 업데이트하고 도커 컨테이너를 다시 시작하지 않아도 마찬가지입니다.Docker의 앱이 업데이트되지 않습니다.
나는 OS X에서 도커를 실행 중입니다.이게 내가 누락되었거나 예상 한 동작일까요?
이 내 docerfile이 모습입니다 :
FROM ubuntu:14.04.3
# install dependencies
RUN apt-get update
RUN apt-get install -y nginx
RUN apt-get install -y supervisor
RUN apt-get install -y python3-pip
# update working directories
ADD ./app /app
ADD ./config /config
ADD requirements.txt/
# install dependencies
RUN pip3 install -r requirements.txt
# setup config
RUN echo "\ndaemon off;" >> /etc/nginx/nginx.conf
RUN rm /etc/nginx/sites-enabled/default
RUN ln -s /config/nginx.conf /etc/nginx/sites-enabled/
RUN ln -s /config/supervisor.conf /etc/supervisor/conf.d/
EXPOSE 80
CMD ["supervisord", "-n"]
도커 컨테이너를 어떻게 다시 시작 하시겠습니까? – pts
@pts 나는'docker run -p 80:80 app'을 닫고 다시 시작하려고 컨테이너를 멈추었다가 다시 시작하려고 시도했다. 컨테이너를 다시 시작하기 위해 UI를 사용하는 곳에서도 kitematic과 동일한 방법을 시도했습니다. – Jonathan