最近写了个简单的flask_mail
api的dockerfile,如下:
FROM python2.7.8
MAINTAINER rockywu
ADD . /app
WORKDIR /app
RUN pip install -r requirements.txt
ENTRYPOINT ["/etc/init.d/postfix","start"]
EXPOSE 5000
EXPOSE 25
基础镜像中已经安装了postfix软件.
只要执行docker run -d mail_api
就会退出,但是docker run -it mail_api /bin/bash
的时候就不会出现退出.求大家帮忙看看.
迷茫2017-04-22 08:57:57
Try adding the “-P” parameter to the former. The default entry point is not running, so it is launched