docker build 中处理命令行交互

  sre

FROM docker.elastic.co/elasticsearch/elasticsearch:6.8.0
RUN sh -c '/bin/echo -e "y" | ./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.8.0/elasticsearch-analysis-ik-6.8.0.zip'

LEAVE A COMMENT

Captcha Code