> 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/nginx/docker-logs.md).

# docker logs

输出的内容消失了？不，我们可以用 docker logs 找到它

```bash
docker logs <container-id>
```

docker logs 跟随 container id ，可以让我们找回它的输出

![](/files/-McxtlQEkvWWMjfotv2U)

其中，container id 并不需要写完整，甚至只写一位都可以，例如 39f91b83e6e3 可以写作 docker logs 39f，只要前几位在不同的容器名中没有重复，docker client 就会自己找到它。


---

# 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/nginx/docker-logs.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.
