I got two problems here.
My CentOS version: 3.10.0-957.12.1.el7.x86_64.
I can't use 6.x and 7.0.0 elasticsearch on my system, but 5.x is OK!
as you can see, here is something different between. ES02 will stop itself after few seconds. I created the containers using
docker run -d -e ES_JAVA_OPTS="-Xmx256m -Xms256m" -p 9300:9300 -p 9200:9200 --name ES01 5acf0e8da90b
5.x can work well, but 6.x doesn't.
Another question is, the 9200 port is accessable, but 9300 port can't work well, I can't figure it out.
I also got some other informations here. 6.0 version's elasticsearch is not working, here is only 5.x version's port working.