ELK (Elasticsrach Logstash Kibana) docker image
2.9K
ELK (Elasticsearch Logstash Kibana) 5.x Docker image. Alpine OS 3.x.
https://www.elastic.co/guide/en/elasticsearch/reference/5.0/vm-max-map-count.html
You can increase the limits by running the following command as root:
sysctl -w vm.max_map_count=262144
To set this value permanently, update the vm.max_map_count=262144 setting in /etc/sysctl.conf. To verify after rebooting, run:
sysctl vm.max_map_count
# The default machine
docker-machine ssh default
sudo sysctl -w vm.max_map_count=262144
# it will be re-set after you re-boot your Windows host
# To make the setting persistent
sudo vi /var/lib/boot2docker/bootlocal.sh
# Add this line into the profile file
sysctl -w vm.max_map_count=262144
# Then re-start the Docker VM to check
sudo chmod +x /var/lib/boot2docker/bootlocal.sh
exit
docker-machine restart
docker-machine ssh default "sysctl vm.max_map_count"
# You might have to increase "default machine"'s Base Memory to over 3GB
## Open Oracle VM VirtualBox Manager
## Choose the "default (docker 01)"
## Setting > System > Motherboard > Base Memory
## Inscrease it to 3072 MB or 4096 MB
docker build -t "elk" .
docker run -d -p 9200:9200 -p 5601:5601 -p 5044:5044 --name my-elk elk
docker run -d -p 9200:9200 -p 5601:5601 -p 5044:5044 --name my-elk nguoianphu/docker-elk
ports
# 9200 Elasticsearch HTTP JSON interface
# 9300 Elasticsearch TCP transport port
# 5044 Logstash Beats interface, receives logs from Beats such as Filebeat, Packetbeat
# 5601 Kibana web interface
The docker-compose uses the official images from elastic.co.
docker-compose up
ports
# 9200 Elasticsearch HTTP JSON interface
# 9300 Elasticsearch TCP transport port
# 5044 Logstash Beats interface, receives logs from Beats such as Filebeat, Packetbeat
# 5601 Kibana web interface
X-Pack is preinstalled in this image. The default password for the elastic user is changeme.
https://www.elastic.co/guide/en/elasticsearch/reference/5.3/docker.html
Content type
Image
Digest
Size
234.4 MB
Last updated
about 9 years ago
docker pull nguoianphu/docker-elk