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