반응형
도커 컴포즈 설치(docker-compose install)
도커 컴포즈 최신 버전 확인 : https://github.com/docker/compose/releases
$ curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4
v2.15.1
도커 컴포트 v2 최신 버전 설치
sudo curl -sSL "https://github.com/docker/compose/releases/download/$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep tag_name | cut -d '"' -f 4)/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
도커 컴포즈 v2 설치
sudo curl -sSL "https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version
$ docker-compose --version
Docker Compose version v2.15.1
728x90
최신 버전 한 번에 설치
curl -fsSL https://github.com/docker/compose/releases/download/$(curl -s https://github.com/docker/compose/releases/latest \
| sed 's#.*tag/\(.*\)\".*#\1#')/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
1.29.2 버전 설치
sudo curl -fsSL https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose version
$ docker-compose version
docker-compose version 1.29.2, build 5becea4c
docker-py version: 5.0.0
CPython version: 3.7.10
OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
728x90
반응형
'리눅스' 카테고리의 다른 글
[LDAP] OpenLDAP 그룹 및 계정 생성 (0) | 2021.06.13 |
---|---|
[LDAP] OpenLDAP 설치 및 구성 (0) | 2021.06.11 |
chage 명령어 (0) | 2021.06.09 |
파일 디스크립터(File Descriptor) 및 설정(ulimit) (0) | 2021.06.08 |
GitLab Omnibus를 Docker 컨테이너로 올리는 방법 (0) | 2021.06.08 |