sudo yum update
sudo yum install git
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
. ~/.nvm/nvm.sh
nvm install 14.18.1 (노드 버전)
sudo yum install docker
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod 666 /var/run/docker.sock (도커 컴포즈 권한문제)
or
sudo amazon-linux-extras install docker
sudo systemctl start docker
sudo 없이 도커 명령어
sudo usermod -aG docker ec2-user