使用docker安装elk的全过程

本文详细介绍了如何在CentOS 7环境中使用Docker安装ELK(Elasticsearch, Logstash, Kibana)堆栈。从官方脚本安装Docker,验证安装,搜索并拉取ELK镜像,解决运行时遇到的问题,到最后成功运行并在浏览器中验证ELK服务。" 60571713,972129,SpringBatch Step Scope与Job执行配置详解,"['spring', '批处理', 'Job执行', '调度', '集成']
摘要由CSDN通过智能技术生成

环境:Centos 7

1. 使用官方安装脚本自动安装Docker:
[root@zabbix~]# curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
2.安装完成后,查看版本信息:
[root@zabbix ~]# docker version
Client: Docker Engine - Community
 Version:           20.10.5
 API version:       1.41
 Go version:        go1.13.15
 Git commit:        55c4c88
 Built:             Tue Mar  2 20:33:55 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?                                                                                                                                                         
3.启动docker:
[root@zabbix ~]# service docker restart
4.运行hello-world映像,验证Docker引擎是否正确安装:
[root@zabbix ~]# docker images
REPOSITORY   TAG       IMAGE ID   CREATED   SIZE
[root@zabbix ~]# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
b8dfde127a29: Pull complete
Digest: sha256:308866a43596e83578c7dfa15e27a73011bdd402185a84c5cd7f32a88b501a24
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值