> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/cloud/cloud-devops/docker/docker_build.md).

# Docker\_Build

* 도커 엔진 설치가 완료 된 후 개발환경 설정을 위해 도커 이미지를 빌드하는 과정을 설명한다.

## 도커 빌드

{% stepper %}
{% step %}

### 준비

* Dockerfile과 deploy 파일을 한 디렉토리(폴더)에 모아 둔다.
  * 참조: [Docker file](broken://pages/37232ddec1f97defb087df92df0626ad29ed291a)
    {% endstep %}

{% step %}

### 빌드

* Dockerfile이 위치한 디렉토리에서 아래 명령어를 실행한다.

```shell
docker build .
```

![](https://dreamhack-lecture.s3.amazonaws.com/media/fbac3efaafa2fdda7df94960bb3cee7e2107a1f01208f7fc7bc237efe74e8aee.png)

![](/files/4f80b27da16ad41535e961ca140d88b5dbc89509)
{% endstep %}

{% step %}

### 확인

* 빌드 완료 후 `docker images` 명령어로 생성된 이미지를 확인할 수 있다.
  {% endstep %}
  {% endstepper %}


---

# 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://krjaeh0.gitbook.io/j-log/cloud/cloud-devops/docker/docker_build.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.
