cleanUrl: /elk/execute-elk-using-docker

ELK 를 공부하는데 일단 한번 로컬에서 실행시켜 봐야 하지 않을까?? 하는 생각이 들었다.

한땀한땀 설정해서 내 컴퓨터에 설치하자니 그건 좀 싫어서 docker 로 ELK 전부를 띄우고 내가 만들 앱을 거기다 연동하면 좋겠다는 생각이 들었다.

docker-elk 라는 github 을 참고했다. 사실 docker 로 개발환경을 구성해본 적이 없으니 이건 첫 번째 시도가 될 것이다.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/bac20698-db67-442c-bfeb-ffc8880418f7/Screen_Shot_2021-01-06_at_13.47.30.png

ㅎㅏ... 시작부터 기부니가 좋구나 ㅠㅠ 일단 stack over flow 에 검색해보니 docker.app 을 실행시키라고 한다

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/001487ea-9503-4c9b-8abc-a0b26194162e/Screen_Shot_2021-01-06_at_13.48.33.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/28f8ff4f-0342-423f-a677-9bf20e55acee/Screen_Shot_2021-01-06_at_13.48.40.png

일단 설치는 이미 해두었으니 업데이트부터 해보자

설치가 완료되었으니 github readmd 에 있는대로 다시

docker-compose up

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6a643e4a-6f85-45ef-8dbd-e0be4560dd68/Screen_Shot_2021-01-06_at_14.00.13.png

이런 에러가 나온다. 이걸 검색해보면

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/45e424ef-9b12-4442-8627-a0cbc1f727f9/Screen_Shot_2021-01-06_at_14.00.51.png

docker pruen 이란 사용하지 않는 container 를 모두 제거하는데 사용하는 command 이다.

https://docs.docker.com/engine/reference/commandline/system_prune/

docker container prune
docker-compose up

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/758c6d67-fb80-4f8d-b968-77751606c8c0/Screen_Shot_2021-01-06_at_14.02.24.png

위와 같이 prune 실행 후, docker-compose up 을 하면 이렇게 뜬다.

이 글을 작성하는 시점에 docker 에 상당한 업데이트가 있었다고 하는거 보니 그 부분과 연관이 있는게 아닐까 싶다. 이 과정이 끝나고 나면

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/df618ff3-4553-493c-b292-ed0e18b43801/Screen_Shot_2021-01-06_at_14.31.40.png

뭔진 모르지만 잘 떠있는것 같다