티스토리 뷰
** 시작하기에 앞서 **
영어로 쓴 이유는.. 회사 뒷자리 개발자 분이 영어로 쓰시길래 손민수 해봤다
1. Set docker in EC2 instance
- Ubuntu(Linux) 기준 명령어
- Upgrade packaging tool
apt update & apt upgrade
2. Install necessary package for installing Docker
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
3. Authenticate GPC Key for Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
→ If the result message is ‘OK’, it has done properly.
4. Register Docker Repository. (*It is necessary step to set Docker environment)
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
5. Install Docker using api-get packaging tool
sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io
6. Check version to confirm if it has installed properly.
docker -v