> For the complete documentation index, see [llms.txt](https://data-programs.gitbook.io/singularity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://data-programs.gitbook.io/singularity/kr/installation/install-from-docker.md).

# 도커를 통한 설치

Docker를 사용하여 미리 구성된 Singularity 이미지를 손쉽게 가져와 실행할 수 있습니다.

## Docker 이미지 가져오기

다음 명령을 실행하여 미리 빌드된 Docker 이미지를 얻을 수 있습니다:

```bash
docker pull ghcr.io/data-preservation-programs/singularity:main
```

## Docker 이미지에서 Singularity 실행하기

### 기본 SQLite3 백엔드 사용

기본적으로 Singularity는 `sqlite3`를 데이터베이스 백엔드로 사용합니다. 실행하려면 컨테이너 내의 홈 디렉토리에 로컬 경로를 마운트해야 합니다:

```bash
docker run -v $HOME:/root ghcr.io/datapreservationprogram/singularity -h
```

### 대체 데이터베이스 백엔드 사용 (예: Postgres)

Postgres와 같은 다른 데이터베이스 백엔드를 선택한 경우, 컨테이너 실행 중에 `DATABASE_CONNECTION_STRING` 환경 변수를 설정하십시오:

```bash
docker run -e DATABASE_CONNECTION_STRING=여기에_연결_문자열_입력 ghcr.io/datapreservationprogram/singularity -h
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://data-programs.gitbook.io/singularity/kr/installation/install-from-docker.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
