solution
docker run -d -p 5601:5601 --link elasticsearch -e "elasticsearch_url=容器ip:9200" --name kibana kibana
- Modify the configuration file kibana.yml in elasticsearch.url
Docker network network container provided
- Set the network group
docker network create somenetwork
- Need elasticsearch and kibana in the same network
- RUN -d --name kibana - Net Docker somenetwork -p 5601: 5601 kibana
* access port can access the interface