EC2 환경에서 했음(ubunt 20.04) 우분투라 명령어 앞에 sudo를 붙여주거나 도커에서 sudo를 안치고 실행하도록 설정해 줘야함

https://github.com/hjs101/CICD_manual → 완정정리 잘된 깃허브(react, django 기반)

Docker 설치

apt update -y && apt upgrade -y
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL <https://download.docker.com/linux/ubuntu/gpg> | sudo apt-key add -
sudo add-apt-repository \\
"deb [arch=amd64] <https://download.docker.com/linux/ubuntu> \\
$(lsb_release -cs) \\
stable"
sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io
docker -v
sudo systemctl enable docker && service docker start
service docker status

MySQL

도커허브로부터 MySQL 이미지 받아오기