본문 바로가기

CentOS

docker-compose 설치하기

매번 docker 명령어를 이용해서 container를 띄우려니 너무넘모 귀찮다.

 

따로 config 파일을 만들어서 간단한 명령어로 띄울 수 있는 docker-compose를 설치해보자.

https://docs.docker.com/compose/

 

Overview of Docker Compose

Looking for Compose file reference? Find the latest version here. Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure...

docs.docker.com

설치라기에는 따로 포스팅하기도 민망하게 간단하다. 

 

우선 스크립트를 다운로드하고

curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

실행 권한을 주면

chmod +x /usr/local/bin/docker-compose

 

끝! ..내면 너무 짧으니 설치가 되었는지 버전이라도 확인해보자.

docker-compose -v

 

진짜 끝.

 

 

 

'CentOS' 카테고리의 다른 글

Let's Encrypt Wildcard Domain SSL 인증서 발급  (0) 2020.03.28
GitHub-Page (Jekyll 사용하기)  (0) 2020.03.25
Docker 설치  (0) 2020.03.13
Ruby 설치하기  (0) 2020.03.08
SSL 무료 인증서 발급하기  (0) 2020.03.06