CoreOS:fleetctl状态显示服务处于非活动状态,而容器已启动
所以我在笔记本电脑上做了一个3节点的core-os安装程序。 我正在关注他们的快速入门指南。 https://coreos.com/docs/quickstart/ 。
现在,当我运行hello.service,并检查它的状态,它显示我的服务是不活动/死亡。
core@core-02 ~ $ fleetctl status hello.service ● \x22hello.service\x22.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead)
虽然日志和dockerPS输出似乎暗示,它都工作正常:
core@core-02 ~ $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3b338ba5085b busybox:latest "/bin/sh -c 'while t 2 minutes ago Up 2 minutes hello core@core-02 ~ $ fleetctl journal hello.service -- Logs begin at Wed 2015-06-17 08:23:20 , end at Wed 2015-06-17 11:27:48 . -- Jun 17 11:27:39 core-02 docker[3296]: Hello World Jun 17 11:27:40 core-02 docker[3296]: Hello World Jun 17 11:27:41 core-02 docker[3296]: Hello World Jun 17 11:27:42 core-02 docker[3296]: Hello World Jun 17 11:27:43 core-02 docker[3296]: Hello World Jun 17 11:27:44 core-02 docker[3296]: Hello World Jun 17 11:27:45 core-02 docker[3296]: Hello World Jun 17 11:27:46 core-02 docker[3296]: Hello World Jun 17 11:27:47 core-02 docker[3296]: Hello World Jun 17 11:27:48 core-02 docker[3296]: Hello World
任何想法,我在做什么我的环境错了? TIA。 这里是hello.service:
core@core-02 ~ $ cat hello.service [Unit] Description=My Service After=docker.service [Service] TimeoutStartSec=0 ExecStartPre=-/usr/bin/docker kill hello ExecStartPre=-/usr/bin/docker rm hello ExecStartPre=/usr/bin/docker pull busybox ExecStart=/usr/bin/docker run --name hello busybox /bin/sh -c "while true; do echo Hello World; sleep 1; done" ExecStop=/usr/bin/docker stop hello
这是一个fleetctl与逃脱报价有关的错误。 最后的评论说修正适用于阿尔法和稳定,但奇怪,不是testing版。