dev/linux

Docker Compose 설치 (Ubuntu 22.04)

재삐신생 2023. 12. 4. 16:26
반응형
## 선행 도커설치 필요함 ##

# 설치할 디렉토리 생성
sudo mkdir -p /usr/local/lib/docker/cli-plugins

# 바이너리 다운로드
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/lib/docker/cli-plugins/docker-compose

# 실행권한 부여
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose

# 심볼릭 링크 생성
sudo ln -s /usr/local/lib/docker/cli-plugins/docker-compose /usr/local/bin/docker-compose

# 버전확인
docker-compose --version
반응형