dockerfile - docker container中postfix进程开机启动后container退出
PHP中文网
PHP中文网 2017-04-22 08:55:57
0
1
684

最近写了个简单的flask_mailapi的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的时候就不会出现退出.求大家帮忙看看.

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
迷茫

Try adding the “-P” parameter to the former. The default entry point is not running, so it is launched

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!