Amazon Linux 2023 Docker Compose 설치
· 약 1분
최신 버전의 Docker Compose를 이용하기 위해 Docker Compose 플러그인을 사용해보자.
Docker Compose 플러그인 설치
# Docker
sudo yum install -y docker
sudo usermod -aG docker ec2-user
sudo systemctl enable --now docker
exec bash
docker ps
# Compose Plugin
sudo mkdir -p /usr/local/lib/docker/cli-plugins/
sudo curl -SL "https://github.com/docker/compose/releases/latest/download/docker-compose-linux-$(uname -m)" -o /usr/local/lib/docker/cli-plugins/docker-compose
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
docker compose version
Docker Compose 플러그인을 docker-compose 명령어로 사용
alias docker-compose='docker compose --compatibility "$@"'