Docker 安装ELK之(2)
先安装Docker
[root@jiaxin-ceshi src]# curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
启动docker
[root@jiaxin-ceshi src]# service docker start
Redirecting to /bin/systemctl start docker.service
[root@jiaxin-ceshi src]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@jiaxin-ceshi src]# docker search elk
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
sebp/elk Collect, search and visualise log data with … 734 [OK]
qnib/elk Dockerfile providing ELK services (Elasticse… 108 [OK]
willdurand/elk Creating an ELK stack could not be easier. 95 [OK]
sebp/elkx Collect, search and visualise log data with … 31 [OK]
wazuh/ossec-elk Includes an OSSEC manager and an Elasticsear… 17 [OK]
dtagdevsec/elk deprecated 9 [OK]
elkozmon/zoonavigator-web Web client for ZooNavigator, web-based brows… 8
elkarbackup/elkarbackup ElkarBackup is a free open-source backup sol… 6 [OK]
grubykarol/elk-docker elk docker image (derived from spujadas/elk-… 6 [OK]
elkozmon/zoonavigator-api API for ZooNavigator, web-based browser/edit… 4
cdrocker/elk5 Elasticsearch 5, Kibana 5 and Logstash 5 on … 4 [OK]
dockercisco/elklat Docker ELK stack for Nexus 2
portbase/elk-filebeat elk-filebeat 1
scality/elk 1
salgat/elk-cors ELK stack with CORS enabled for ElasticSearc… 1 [OK]
codechimporg/unraid-dockers-elk ELK stack for docker on unraid 0 [OK]
itherz/elk ELK Stack with some improvements (datetime f… 0 [OK]
otasys/elk-redis An ELK stack with redis all in one container. 0 [OK]
coralproject/elkhorn Elkhorn 0 [OK]
d3tdistribution/elk-docker Stack ELK 0 [OK]
eternaltyro/elk-aws-discovery Collect, search and visualize log data with … 0 [OK]
cloudunit/elk-elasticsearch elk-elasticsearch 0 [OK]
portbase/elk-elasticsearch elk-elasticsearch 0
portbase/elk-kibana elk-kibana 0
cloudunit/elk-kibana elk-kibana 0 [OK]
下载elk
[root@jiaxin-ceshi src]# docker pull sebp/elk
Using default tag: latest
latest: Pulling from sebp/elk
[root@jiaxin-ceshi src]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
sebp/elk latest a55642eacfef 8 days ago 1.45GB
然后运行elk
[root@jiaxin-ceshi src]# docker run -d -p 5601:5601 -p 9200:9200 -p 5044:5044 -e ES_MIN_MEM=128m -e ES_MAX_MEM=1024m -it --name elk22 sebp/elk
6d2ffaaea11a2628f868d06746352a4ac566de91f04e2d0d25a6b03ef946eea4
[root@jiaxin-ceshi src]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6d2ffaaea11a sebp/elk "/usr/local/bin/star…" 9 seconds ago Up 9 seconds 0.0.0.0:5044->5044/tcp, 0.0.0.0:5601->5601/tcp, 0.0.0.0:9200->9200/tcp, 9300/tcp
版权声明:本文内容由互联网用户自发贡献,版权归作者所有,本社区不拥有所有权,也不承担相关法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件至:yqgroup@service.aliyun.com 进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容。
如果遇到启动失败,很多原因是因为内存配置不够导致,
编辑 /etc/sysctl.conf,追加以下内容:
vm.max_map_count=655360
保存后,执行:
sysctl -p
vm.max_map_count=655360
保存后,执行:
sysctl -p