Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20220502] AWS EC2에 Docker, Docker-Compose 설치하기, AWS SSH public, private key #255

Open
JuHyun419 opened this issue May 2, 2022 · 0 comments
Labels

Comments

@JuHyun419
Copy link
Owner

JuHyun419 commented May 2, 2022

Docker, Docker-Compose 설치 명령어

// 도커 설치
sudo yum install docker -y

// 도커 실행
sudo service docker start

// 도커 상태 확인
systemctl status docker.service

// Docker 관련 권한 추가
sudo chmod 666 /var/run/docker.sock
docker ps

// 도커 컴포즈 설치
sudo curl \
-L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" \
-o /usr/local/bin/docker-compose

// 권한 추가
sudo chmod +x /usr/local/bin/docker-compose

// 버전 확인
docker-compose --version

AWS SSH public, private key

  • EC2 인스턴스를 생성하면 기본적으로 ~/.ssh 경로에 authorized_keys 라는 public key가 저장되어 있음

image

  • 클라이언트에서 접속할 때는 private key로 비교하여 접속 허용 여부 판단
  • [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
    • 위와 같은 오류? -> 공개키 훼손 등의 문제 확인해볼 것
@JuHyun419 JuHyun419 added the Infra label May 2, 2022
@JuHyun419 JuHyun419 changed the title [20220502] AWS EC2에 Docker, Docker-Compose 설치하기 [20220502] AWS EC2에 Docker, Docker-Compose 설치하기, AWS SSH public, private key May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant