도커 설치 안내 > 질문답변

본문 바로가기
나루틔움에 오신 것을 환영합니다. 자세히 보기
사이트 내 전체검색

> Q&A > 질문답변

백엔드 도커 설치 안내

profile_image
작성자 관리자
댓글 0건 조회 11회 작성일 26-06-03 01:50

본문

리눅스 서버에 Docker와 Docker Compose가 없다면 먼저 설치한 뒤 나루티움 설치를 진행합니다.

0. 먼저 운영체제 확인

cat /etc/os-release

1. 공통 준비

패키지 목록 갱신

apt update

필수 패키지 설치

apt install -y ca-certificates curl
아래 2개 중에서 현재 운영체제에 맞는 항목 하나만 진행하면 됩니다. 라즈베리 장비라도 설치된 운영체제가 Debian이면 Debian 항목을 선택합니다.

2. Ubuntu일 때

Docker 저장소 등록 준비

install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc

Docker 저장소 등록

tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF

3. Debian일 때

Docker 저장소 등록 준비

install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc

Docker 저장소 등록

tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF

4. Docker 패키지 설치

apt update
apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

5. 설치 후 공통 확인

docker --version
docker compose version

버전이 출력되면 Docker 서비스 상태를 확인합니다.

systemctl status docker --no-pager

그리고 마지막으로 Docker 자체 테스트를 실행합니다.

docker run hello-world

정상적으로 버전이 출력되고 서비스 상태가 활성화되어 있으며 hello-world 테스트까지 완료되면 나루티움 설치 가이드로 돌아가서 다음 단계부터 계속 진행하면 됩니다.

참고

  • 라즈베리 장비인지보다 현재 설치된 운영체제가 Ubuntu인지 Debian인지 먼저 확인하는 게 더 중요합니다.
  • Ubuntu는 linux/ubuntu, Debian은 linux/debian 저장소를 사용합니다.
  • 오프라인 또는 폐쇄망 환경이면 사내 저장소 또는 미리 준비한 패키지로 설치해야 할 수 있습니다.
  • 설치 후에는 docker compose up -d 명령을 사용할 수 있어야 합니다.

댓글목록

등록된 댓글이 없습니다.

공지 및 업데이트

더보기

개발/설치 의뢰

더보기

  • 주식회사 노디아
  • 사업자 번호 280-88-03805
  • 통신판매업 신고번호 280-88-03805
  • 대표 조경순
  • nodiahelp@gmail.com
  • 개인정보관리책임자 김종성

Copyright © 나루틔움. All rights reserved.