> For the complete documentation index, see [llms.txt](https://chaosblade-io.gitbook.io/chaosblade-help-zh-cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaosblade-io.gitbook.io/chaosblade-help-zh-cn/blade-create-docker/blade-create-docker-container.md).

# blade create docker container

## 介绍

此命令主要执行 container 资源自身的场景，比如删容器

## 命令

支持场景命令如下

* `blade create docker container remove` 删除容器

## 参数

```
--container-id string      要删除的容器 ID
--docker-endpoint string   Docker server 地址，默认为本地的 /var/run/docker.sock
--force                    是否强制删除
```

删除容器后，执行 blade destroy UID 命令不会恢复容器，需要靠容器自身的管理拉起！

## 案例

删除 container id 是 a76d53933d3f 的容器，命令如下：

```
blade create docker container remove --container-id a76d53933d3f
```

如果返回 `{"code":200,"success":true,"result":"ed79c686daa88152"}` 说明执行成功。如果执行失败，会有详细的错误提升

## 常见问题


---

# 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://chaosblade-io.gitbook.io/chaosblade-help-zh-cn/blade-create-docker/blade-create-docker-container.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.
