首页 > 解决方案 > 运行 docker-compose up -d 但我冲突 ruby​​ 版本的错误

问题描述

我在这里从书籍安装存储库是存储库 url

git clone https://github.com/efkbook/blog-sample

和我冲突的 ruby​​ 版本的错误我该如何解决这个问题?

docker-compose up -d

错误信息:

Step 5/7 : RUN /usr/sbin/td-agent-gem install fluent-plugin-elasticsearch fluent-plugin-record-reformer
 ---> Running in 6f05fb399ffe
Building native extensions.  This could take a while...
Successfully installed msgpack-1.3.3
Successfully installed serverengine-2.2.1
Building native extensions.  This could take a while...
ERROR:  Error installing fluent-plugin-elasticsearch:
    fluentd requires Ruby version >= 2.4.
Successfully installed strptime-0.2.3
Successfully installed fluent-plugin-record-reformer-0.9.1
Parsing documentation for fluent-plugin-record-reformer-0.9.1
Installing ri documentation for fluent-plugin-record-reformer-0.9.1
Done installing documentation for fluent-plugin-record-reformer after 0 seconds
1 gem installed
ERROR: Service 'fluentd' failed to build: The command '/bin/sh -c /usr/sbin/td-agent-gem install fluent-plugin-elasticsearch fluent-plugin-record-reformer' returned a non-zero code: 1

标签: rubydocker

解决方案


推荐阅读