简体   繁体   English

为什么我的Tutum服务从容器状态“ die”命令开始然后在2秒钟内停止?

[英]Why is my Tutum service starting then within 2 seconds stopping with a container status “die” command?

I'm running a custom reposository from Docker Hub on Tutum and trying to start a service. 我正在从Tutum上的Docker Hub运行自定义存储库,并尝试启动服务。 I get a Service Start, but then 1-2 seconds, it receives a Container status die command. 我得到一个服务启动,但是然后在1-2秒后,它收到一个Container status die命令。 I can't figure out why. 我不知道为什么。

Received event 'die' from node 31b3f894-a0b9-494e-bca0-9212b642dd15.node.dockerapp.io for container api-1: Running
Changing container state from 'Running' to 'Stopped'
Checking triggers
Container has no triggers

I got an answer back from Docker Cloud (formerly Tutum) support. 我从Docker Cloud(以前称为Tutum)的支持中得到了答案。

When the process started inside a container exits for whatever reason, the container is then considered "exited". 当由于某种原因而在容器内启动的过程退出时,该容器便被视为“已退出”。 Docker cloud shows this service as "stopped" once it sees the container is no longer running. 一旦发现容器不再运行,Docker云会将其显示为“已停止”。

So this particular container is trying to connect to a database (which I don't have connected again) so it fails, therefore that is why it tells the service to shut down. 因此,此特定容器正在尝试连接到数据库(我没有再连接),因此它失败了,因此这就是为什么它告诉服务关闭的原因。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从其他容器启动和停止Docker容器 - Starting and stopping docker container from other container 为什么 Docker 服务停止了? - Why is the Docker service stopping? 为什么我不能在 Dockerfile 中运行命令,但我可以在我的 Docker 容器中运行命令? - Why can't I run command in Dockerfile but I can from within the my Docker container? 关于安全启停docker容器的问题 - Question about safely starting and stopping docker container 我的Docker容器将从容器内运行命令,但不使用ENTRYPOINT - My Docker container will run a command from within the container, but not with ENTRYPOINT “服务cron状态”命令不会在ubuntu docker容器中返回cron的状态 - “Service cron status” command does not give back the status of cron in the ubuntu docker container 为什么我的容器没有在 Google Compute Engine 虚拟机上启动? - Why is my container not starting on Google Compute Engine VM? 为什么以 root 身份启动时我的容器似乎是空的? - Why is my container when starting as root seem to be empty? 使用 Docker 启动主管并在 docker 日志中看到它的日志,但在容器中找不到具有服务主管状态的服务 - Starting supervisor with Docker and seeing it's logs in docker logs, but not finding the service with service supervisor status in the container 停止 mariadb 服务而不停止/重新启动 mariadb 容器 - Stopping mariadb service without stopping/restarting mariadb container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM