반응형
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
반응형
'Docker' 카테고리의 다른 글
[docker] permission denied while trying to the Docker daemon socket .. 에러 해결 (0) | 2024.11.10 |
---|---|
Docker Image, Container 명령어 (0) | 2021.01.11 |
Docker 설치(Centos, Linux) (0) | 2021.01.11 |