리셋 되지 말자

[docker] docker-compose 설치 on Ubuntu 본문

Docker

[docker] docker-compose 설치 on Ubuntu

kyeongjun-dev 2021. 2. 23. 13:38

환경

OS : CentOS 7

docker가 설치되어 있는 상태

 

1. docker-compose 버전 확인

https://github.com/docker/compose/releases

 

Releases · docker/compose

Define and run multi-container applications with Docker - docker/compose

github.com

 

2. docker-compose 설치

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

/download/버전/docker-compose

원하는 버전을 명시하여 설치한다

 

3. 실행 권한 부여

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

 

Comments