> 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-ps.md).

# docker ps

我们通过 docker ps 来查看当前正在运行的容器，其中的 container id 就是上文运行 nginx 服务时，回显字符串的前 12 个字符

```bash
docker ps
```

![](/files/-McxsYXsUGHZ_SOlO-Dt)

图中展示了上一篇文章正在运行的两个 docker image，他们正在后台跑着

我们也可以通过 docker ps -a 查看所有的，包括已经关闭的 docker 实例

![](/files/-McxspnEG5Mx-0YNDynB)

例如图中展示了之前关闭的 nginx 实例和一开始自己退出的 hello-world 实例


---

# 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-ps.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.
