Docker-elk 설치
docker-elk 최신 버전을 설치하다 보면 아래와 같이 오류가 나는 경우가 있음
$ git clone https://github.com/deviantony/docker-elk.git
$ cd docker-elk
$ sudo docker-compose up -d
ERROR: Service 'elasticsearch' failed to build: Please provide a source image with `from` prior to commit
Docker 버전 문제로 예상되며 아래의 경로에서 OS별로 최신 docker-ce로 설치
https://hub.docker.com/search/?type=edition&offering=community
CentOS의 경우 기존 docker 제거 후 아래와 같이 재설치
$ sudo yum install -y yum-utils
$ sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
$ sudo yum-config-manager --enable docker-ce-nightly
$ sudo yum install docker-ce docker-ce-cli containerd.io
$ systemctl start docker
$ sudo docker-compose up -d
Building elasticsearch
Step 1/2 : ARG ELK_VERSION
Step 2/2 : FROM docker.elastic.co/elasticsearch/elasticsearch-oss:6.7.1
6.7.1: Pulling from elasticsearch/elasticsearch-oss
8ba884070f61: Pull complete
...
..