经过我的测试发现,>=7.15.2 版本无法使用TZ设置时区,例如:7.17.1、8.1.0
After my test, I found that the time zone cannot be set with TZ in version > = 7.15.2, such as 7.17.1 and 8.1.0。
docker run -d -e "TZ=Asia/Shanghai" -e "discovery.type=single-node" -e "ES_JAVA_OPTS=-Xms1g -Xmx1g" --name es2 docker.elastic.co/elasticsearch/elasticsearch:7.15.2