docker-library / elasticsearch

DEPRECATED; https://github.com/docker-library/official-images/pull/15808
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
Apache License 2.0
485 stars 346 forks source link

can not run by 7.14.1 #199

Closed duansheli closed 2 years ago

duansheli commented 2 years ago

problem

image

env

image

docker network create somenetwork

docker run -it --rm \
--net somenetwork -p 9200:9200 -p 9300:9300 \
-e "discovery.type=single-node" elasticsearch:7.14.1 
duansheli commented 2 years ago

test on other system is ok

wglambert commented 2 years ago

I'm not able to reproduce any issue with running it. You might try checking the logs and seeing what that shows

$ docker run -d --name elasticsearch --net somenetwork -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:7.14.1
Unable to find image 'elasticsearch:7.14.1' locally
7.14.1: Pulling from library/elasticsearch
7a0437f04f83: Pull complete 
676f9b0455ba: Pull complete 
b2883bec0e71: Pull complete 
4da0c921bd93: Pull complete 
006b83acd4d9: Pull complete 
fc7d661103bf: Pull complete 
351a057c286e: Pull complete 
Digest: sha256:80bc3fe9d3ab2da410abadc2245eb5833c7ef7bb58ce2d89b24dabfb8c3d5233
Status: Downloaded newer image for elasticsearch:7.14.1
db2d0d9bd084fcb9e6724afd1c94be657a0c4d47b8df29d10dc11aeac643c296

$ docker ps
CONTAINER ID   IMAGE                  COMMAND                  CREATED              STATUS              PORTS                                            NAMES
db2d0d9bd084   elasticsearch:7.14.1   "/bin/tini -- /usr/l…"   About a minute ago   Up About a minute   0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp   elasticsearch
docker logs ```console $ docker logs elasticsearch {"type": "server", "timestamp": "2021-10-14T17:00:27,214Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "version[7.14.1], pid[8], build[default/docker/66b55ebfa59c92c15db3f69a335d500018b3331e/2021-08-26T09:01:05.390870785Z], OS[Linux/4.4.0-210-generic/amd64], JVM[Eclipse Foundation/OpenJDK 64-Bit Server VM/16.0.2/16.0.2+7]" } {"type": "server", "timestamp": "2021-10-14T17:00:27,219Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "JVM home [/usr/share/elasticsearch/jdk], using bundled JDK [true]" } {"type": "server", "timestamp": "2021-10-14T17:00:27,219Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "JVM arguments [-Xshare:auto, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=SPI,COMPAT, --add-opens=java.base/java.io=ALL-UNNAMED, -XX:+UseG1GC, -Djava.io.tmpdir=/tmp/elasticsearch-3691760849769347639, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Des.cgroups.hierarchy.override=/, -Xms2000m, -Xmx2000m, -XX:MaxDirectMemorySize=1048576000, -XX:G1HeapRegionSize=4m, -XX:InitiatingHeapOccupancyPercent=30, -XX:G1ReservePercent=15, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=docker, -Des.bundled_jdk=true]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,566Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [aggs-matrix-stats]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,566Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [analysis-common]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,567Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [constant-keyword]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,567Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [frozen-indices]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,568Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [ingest-common]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,569Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [ingest-geoip]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,569Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [ingest-user-agent]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,569Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [kibana]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,570Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [lang-expression]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,570Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [lang-mustache]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,571Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [lang-painless]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,571Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [mapper-extras]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,571Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [mapper-version]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,572Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [parent-join]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,578Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [percolator]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,579Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [rank-eval]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,580Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [reindex]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,580Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [repositories-metering-api]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,581Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [repository-encrypted]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,583Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [repository-url]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,583Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [runtime-fields-common]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,583Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [search-business-rules]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,584Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [searchable-snapshots]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,585Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [snapshot-repo-test-kit]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,585Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [spatial]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,592Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [transform]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,592Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [transport-netty4]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,593Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [unsigned-long]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,593Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [vectors]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,593Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [wildcard]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,595Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-aggregate-metric]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,595Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-analytics]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,596Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-async]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,596Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-async-search]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,596Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-autoscaling]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,596Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-ccr]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,597Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-core]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,597Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-data-streams]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,598Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-deprecation]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,598Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-enrich]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,598Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-eql]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,599Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-fleet]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,600Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-graph]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,600Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-identity-provider]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,600Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-ilm]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,601Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-logstash]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,601Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-ml]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,602Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-monitoring]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,603Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-ql]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,605Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-rollup]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,605Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-security]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,607Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-shutdown]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,607Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-sql]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,608Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-stack]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,608Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-text-structure]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,608Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-voting-only-node]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,609Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "loaded module [x-pack-watcher]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,609Z", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "no plugins loaded" } {"type": "server", "timestamp": "2021-10-14T17:00:33,672Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "using [1] data paths, mounts [[/ (overlay)]], net usable_space [3.2gb], net total_space [4.6gb], types [overlay]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,673Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "heap size [1.9gb], compressed ordinary object pointers [true]" } {"type": "server", "timestamp": "2021-10-14T17:00:33,699Z", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "db2d0d9bd084", "message": "node name [db2d0d9bd084], node ID [sZAIDAFxSD6OOo-pmLwkoA], cluster name [docker-cluster], roles [transform, data_frozen, master, remote_cluster_client, data, ml, data_content, data_hot, data_warm, data_cold, ingest]" } ```
wglambert commented 2 years ago

Going to close assuming this is resolved. If you need further help you can also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. As these repos aren't really a user-help forum