> For the complete documentation index, see [llms.txt](https://moekiwisama-1.gitbook.io/minecraft-docker/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moekiwisama-1.gitbook.io/minecraft-docker/ji-yu-alpine-zhi-zuo-image/untitled.md).

# 探索azul/zulu-openjdk-alpine

我们可以使用

```bash
docker run -it -p 25566:25565 azul/zulu-openjdk-alpine:16.0.0
```

来获取 azul/zulu-openjdk-alpine:16.0.0，顺便把容器内的 25565 端口映射到容器外的 25566 端口，:16.0.0 表示镜像的版本号，可以在dockerhub 找到具体的描述，zulu-openjdk-alpine 的 16.0.0 使用的就是 jdk 16

azul/zulu-openjdk-alpine 是一个基于 apline 制作的 jdk 环境

![](/files/-Mcy2s9NhwQai116t7XC)

运行这个容器，我们会惊奇地发现，里面已经安装完 jdk 了，这时候我们只要有了 mc 服务端，就可以运行 mc 服务器了！

我们先创建一个目录并且进入它

```
mkdir app
cd add
```

### 小技巧

获取 paper spigot 其实非常方便，我们可以直接通过 papermc 的 api 来获取它

```bash
wget https://papermc.io/api/v1/paper/1.17/latest/download -O "paper.jar"  
```

之后我们就可以通过常规的手段来启动服务器

```bash
java -jar paper.jar
```

通过 sed 可以将 eula.txt 文本中的 false 替换为 true

```bash
sed -i 's/false/true/g' eula.txt
```

![](/files/-Mcy5YROnCaO-DnDPJnk)

使用宿主机的地址与端口，我们就可以进入服务器了


---

# 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:

```
GET https://moekiwisama-1.gitbook.io/minecraft-docker/ji-yu-alpine-zhi-zuo-image/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
