【发布时间】:2015-10-21 03:46:08
【问题描述】:
我正在查看http://progrium.viewdocs.io/dokku/process-management/ 并试图弄清楚如何从一个项目中运行多个服务。
我有一个带有 Dockerfile 的仓库:
FROM wjdp/flatcar
ADD . app
RUN /app/bin/install.sh
EXPOSE 8000
CMD /app/bin/run.sh
run.sh 启动单线程 Web 服务器。这工作正常,但我想运行几个服务。
我尝试使用单行 web: /app/bin/run.sh
创建 Procfile 并从 Dockerfile 中删除 CMD 行。这是行不通的,因为没有运行 Docker 容器的命令就无法存活,dokku 会伤心:
remote: Error response from daemon: Cannot kill container ae9d50af17deed4b50bc8327e53ee942bbb3080d3021c49c6604b76b25bb898e: Container ae9d50af17deed4b50bc8327e53ee942bbb3080d3021c49c6604b76b25bb898e is not running
remote: Error: failed to kill containers: [ae9d50af17deed4b50bc8327e53ee942bbb3080d3021c49c6604b76b25bb898e]
【问题讨论】:
标签: docker dockerfile dokku