백엔드 도커 설치 안내

본문
리눅스 서버에 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명령을 사용할 수 있어야 합니다.
- 이전글docker ps로 컨테이너 상태는 어떻게 확인하나요? 26.06.03
- 다음글같은 펌웨어를 다른 쇼핑몰에도 같이 올려도 되나요? 26.05.24
댓글목록
등록된 댓글이 없습니다.