仓库进行fluentd版本查询并选择对应版本
https://hub.docker.com/r/arm64v8/fluentd/tags
dockerfile 编写
FROM arm64v8/fluentd:v1.8-debian-1
MAINTAINER wwx
#授权root用户
USER root
#相关介质安装
RUN mkdir -p /home/icbc/;gem install fluent-plugin-record-modifier -v 1.1.0;gem install fluent-plugin-elasticsearch -v 3.0.1;gem install fluent-config-regexp-type -v 1.0.0;gem install fluent-logger -v 0.7.2;gem install fluent-plugin-kafka -v 0.7.9;gem install fluent-plugin-rewrite-tag-filter -v 2.1.1;
#工作目录指定
WORKDIR /home/icbc
#jq与vim工具安装
RUN apt-get update;apt-get -y --force-yes install jq;apt-get -y --force-yes install vim: