본문 바로가기
Docker

Docker-compose 설치 및 실행

by 주사휘 2021. 1. 18.
반응형

1. Curl 설치

  • # yum -y install curl

2. docker-compose 파일 다운로드

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

3. docker-compose 권한 주기

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

5. docker-compose 심볼링 링크 생성

  • # sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
[root@localhost bin]# ll |grep docker
-rwxr-xr-x. 1 root root     33429400 Sep 20 20:43 docker
lrwxrwxrwx. 1 root root           29 Nov  3 04:42 docker-compose -> /usr/local/bin/docker-compose

 

4. docker-compose 버전 확인

  • docker-compose -v
[root@localhost bin]# docker-compose -v
Docker Compose version v2.5.0
반응형