> For the complete documentation index, see [llms.txt](https://bohans.gitbook.io/devops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bohans.gitbook.io/devops/ji-chu-zhi-shi/4.-docker-rong-qi/4.14-cha-kan-rong-qi-xiang-qing-inspect.md).

# 4.14 查看容器详情(inspect)

查看容器详情可以使用<mark style="color:blue;">**docker container inspect**</mark>**&#x20;\[OPTIONS] CONTAINER \[CONTAINER...]**&#x547D;令，会以**json**格式返回包括容器Id、创建时间、路径、状态、镜像、配置等在内的各项信息。

其使用方式与利用[docker inspect](/devops/ji-chu-zhi-shi/3.-docker-jing-xiang/3.2-cha-kan-jing-xiang-xin-xi/inspect.md)命令查看镜像信息一样。

```bash
$ docker container inspect -f {{".Id"}} a96249ecc8dd
a96249ecc8dd65aee465108d6f4d5944da1f5614645e53f54b6d41b18e5cc026
```


---

# 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://bohans.gitbook.io/devops/ji-chu-zhi-shi/4.-docker-rong-qi/4.14-cha-kan-rong-qi-xiang-qing-inspect.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.
