728x90
도커 컴포즈 설치(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
'리눅스' 카테고리의 다른 글
[리눅스] traefik을 사용하는 도커 컨테이너 리버스 프록시(docker container reverse proxy) (0) | 2023.01.30 |
---|---|
cronolog를 컴파일하여 설치하고 로그를 설정하는 방법 (0) | 2023.01.27 |
[리눅스] td-agent-bit 설치 (0) | 2023.01.27 |
[draft] systemctl status 명령어 (0) | 2023.01.27 |
[draft] Consul 클러스터를 구성하는 방법 (0) | 2023.01.26 |