Closed mortyccp closed 5 years ago
I don't know why yet, but adding the SYS_PTRACE
capability restores the desired behaviour.
$ docker container run -d --name es -e "discovery.type=single-node" --cap-add SYS_PTRACE docker.elastic.co/elasticsearch/elasticsearch:6.0.1
96a3d6c064187d6a850820f9b6aee9d9817b974ff25f10c424f9d979ab498c0d
$ docker container exec es pmap 1 | head -n 10
1: /usr/lib/jvm/jre-1.8.0-openjdk/bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -server -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -XX:+HeapDumpOnOutOfMemoryError -Des.cgroups.hierarchy.override=/
0000000000400000 4K r-x-- java
0000000000600000 4K r---- java
0000000000601000 4K rw--- java
00000000015cd000 132K rw--- [ anon ]
00000000c0000000 1056292K rw--- [ anon ]
0000000100789000 1040860K ----- [ anon ]
00007fa4f0000000 132K rw--- [ anon ]
00007fa4f0021000 65404K ----- [ anon ]
00007fa4f8000000 132K rw--- [ anon ]
@mortyccp As this issue was with Elasticsearch 6, can you confirm the issue still exists for you with Elasticsearch 7?
Additionally, maintenance of the docker files for elasticsearch has moved to the elasticsearch repo. As we will be archiving this repository, I am going to close this issue. If you can confirm the issue still exists, please open a new issue there.
Bug Description
Docker image used: docker.elastic.co/elasticsearch/elasticsearch:6.0.1
Operating System: Darwin 18.0.0 Darwin Kernel Version 18.0.0
docker info
outputdocker inspect NAME|ID
outputSteps to reproduce
docker container run -it --rm --name es -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.0.1
docker container exec es pmap 1
Expected result
pmap 1
should return valid result just like elasticsearch 5