ES version of this article using 6.6.0, use the online installation; this is only for the installation of a container, of course, you can use Dockerfile IK made the new image of this article is not introduced.
1, into the container
docker exec -it vessel name / bin / bash
2, download and install online
./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.6.0/elasticsearch-analysis-ik-6.6.0.zip
Note: The version number to be consistent, version 6.6.0 of;
Into the plugins directory can see IK word has been installed successfully
Then exit and restart the container vessel
exit
docker restart container name
3, test: