Docker 个容器使用 AWS cloudformation

Docker containers using AWS cloudformation

我试过这里提到的说明...

https://github.com/tleyden/open-ocr/wiki/Installation-on-CoreOS-Fleet

这将使用 tessaract 包启动 OCR API。但是我无法启动服务。

core@ip-172-31-17-221 ~ $ fleetctl list-units
UNIT                            MACHINE                         ACTIVE          SUB
httpd.service                   8f3aebfb.../172.31.48.14        failed          failed
rabbitmq.service                4e104b63.../172.31.17.221       failed          failed
rabbitmq_announce.service       4e104b63.../172.31.17.221       inactive        dead
worker.1.service                8f3aebfb.../172.31.48.14        failed          failed
worker.2.service                4e104b63.../172.31.17.221       failed          failed
worker.3.service                6cedf4ff.../172.31.12.203       failed          failed

我从哪里获得 cloudformation 日志?

配置完所有内容后,CloudFormation 部分就完成了,CloudFormation 日志只会告诉您配置信息。所以这里的问题是实际软件而不是 CloudFormation。

也就是说,我碰巧对 Fleet 很有经验,要获取这些服务的日志,您可以做几件事。

首先,尝试使用以下方式查询日志:

fleetctl journal httpd.servicefleetctl journal worker.1.service、等等

如果这不起作用,请尝试通过 SSH 连接到一台主机并使用: journalctl -u httpd.service

最后一点,我不知道你是否想在生产环境中 运行 这个,但我认为你应该知道 fleetd 正在被弃用。

fleet is no longer developed or maintained by CoreOS. After February 1, 2018, a fleet container image will continue to be available from the CoreOS Quay registry, but will not be shipped as part of Container Linux. CoreOS instead recommends Kubernetes for all clustering needs.

如果我是你,我会在 Kubernetes 或 AWS ECS 上寻找类似的解决方案 运行ning。