Home >Operation and Maintenance >Docker >How does docker deploy elk?
How to deploy elk with docker: first download and use the elk integrated image; then start it; finally access it, the code is [[root@centos-mq ~]# sysctl -p
] Enter in the browser: [ http://10.10.0.13:5601] That’s it.
How to deploy elk with docker:
1. Download the image
Here we use elk Integrated image, address: https://hub.docker.com/r/sebp/elk/tags
[root@centos-mq ~]# docker pull sebp/elk:660
Note: 660 is elk version
2, start
[root@centos-mq ~]# echo "vm.max_map_count=262144" > /etc/sysctl.conf [root@centos-mq ~]# sysctl -p [root@centos-mq ~]# docker run -dit --name elk \ -p 5601:5601 \ -p 9200:9200 \ -p 5044:5044 \ -v /opt/elk-data:/var/lib/elasticsearch \ -v /etc/localtime:/etc/localtime \ sebp/elk:660
Description: -p
Specify the mapping port, 5601kibana
access, 9200es
port, 5044 logstash
collection log port; -v
Specify es data directory
3. Access
After startup, wait for data initialization, enter the browser: http://10.10.0.13:5601, you can see the kibana web interface
Recommended related tutorials: docker tutorial
The above is the detailed content of How does docker deploy elk?. For more information, please follow other related articles on the PHP Chinese website!