Step 2/2 : RUN ["gem", "install", "fluent-plugin-elasticsearch", "--no-rdoc", "--no-ri", "--version", "1.9.5"]
---> Running in c98fc764323f
ERROR: Could not find a valid gem 'fluent-plugin-elasticsearch' (= 1.9.5), here is why:
Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/specs.4.8.gz)
ERROR: Service 'fluentd' failed to build: The command 'gem install fluent-plugin-elasticsearch --no-rdoc --no-ri --version 1.9.5' returned a non-zero code: 2
FROM fluent/fluentd:v1.12.0-debian-1.0
USER root
RUN ["gem", "install", "fluent-plugin-elasticsearch", "--no-document", "--version", "5.0.3"]
USER fluent
Step 2/2 : RUN ["gem", "install", "fluent-plugin-elasticsearch", "--no-rdoc", "--no-ri", "--version", "1.9.5"] ---> Running in c98fc764323f ERROR: Could not find a valid gem 'fluent-plugin-elasticsearch' (= 1.9.5), here is why: Unable to download data from https://rubygems.org/ - no such name (https://rubygems.org/specs.4.8.gz) ERROR: Service 'fluentd' failed to build: The command 'gem install fluent-plugin-elasticsearch --no-rdoc --no-ri --version 1.9.5' returned a non-zero code: 2