[AWS] Amazon EC2 도커 설치 (Docker)

    도커 설치

    WS에서 제공하는 기본 Amazon Linux AMI(Amazon Linux 2, Amazon Linux 2023)는 CentOS/RHEL 기반이며 Amazon Linux AMI에는 Docker가 기본 설치되어 있지 않아서 yum 을 이용해 설치하고 service 를 이용해 실행해야 합니다.

     

    Amazon Web Service - EC2


     

    ▼ 1. yum 을 이용해 업데이트를 합니다.

     

     

     

    ▼ 2. yum 을 이용해 docker 를 설치합니다.

     

     

     

    ▼ 3. docker 버전을 확인합니다.

    docker -v


     

     

     

    ▼ 4. Docker 서비스를 실행합니다.

     

     

     

    SUDU 그룹 추가 및 테스트

     

    ▼ 1. EC2 인스턴스에서 Docker를 실행하려면 ec2-user가 docker 그룹에 속해야 합니다. 변경 사항을 적용하려면 로그아웃 후 다시 로그인해야 합니다.

     

     

     

    ▼ 2. 테스트를 위해 hello-world 이미지를 실행합니다.

     

     

     

    Install Docker Engine

     

    https://docs.docker.com/engine/install/

     

    Install

    Learn how to choose the best method for you to install Docker Engine. This client-server application is available on Linux, Mac, Windows, and as a static binary.

    docs.docker.com

     

    Designed by JB FACTORY