Skip to content

Latest commit

 

History

History
85 lines (67 loc) · 2.17 KB

Datamanager-Docker-Guide.md

File metadata and controls

85 lines (67 loc) · 2.17 KB

Data Manager Docker install 가이드

목차

사전 준비

Linux에서 Docker 설치 및 실행

  1. apt-repo를 이용한 docker 설치

    • apt 패키지 업데이트

      sudo apt-get update
    • 필수 패키지 설치

      sudo apt-get install \
          ca-certificates \
          curl \
          gnupg \
          lsb-release
    • Docker의 공식 GPG 키 추가

      sudo mkdir -p /etc/apt/keyrings
      curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
    • Docker apt repository 설정

      echo \
          "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
          $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    • Docker Engine 설치

      sudo apt-get update
      sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
    • Docker 설치 확인

      sudo docker --version
    • docker-compose command alias

      echo "alias docker-compose='docker compose'" >> ~/.$bashrc 
    • Add Group

      sudo usermod -aG docker $USER && exec sudo su - $USER
  2. Linux에서 Docker 커맨드 실행

    • Docker run

      docker run -d -p 3300:3300 cloudbaristaorg/mc-data-manager
    • Docker compose

      • docker-compose yaml 파일 생성
        services:
            mc-data-manager:
                image: cloudbaristaorg/mc-data-manager
                ports:
                - "3300:3300"
      • 실행
        docker compose -f <filename>.yaml up -d