Install
openclaw skills install docker-container-rerun-allSequentially check and optionally update all docker run containers that already have fixed recreate commands recorded in long-term memory. Use when the user wants a batch refresh of remembered docker-run-managed containers, wants dynamic discovery from MEMORY.md instead of a hardcoded list, and wants the results grouped into updated, already up-to-date, and failed containers with image tag and image Id change details.
openclaw skills install docker-container-rerun-allBatch-check remembered docker run containers conservatively.
Use this skill to discover every container that already has a fixed recreate command recorded in long-term memory, then process them one by one with the same image-Id comparison workflow used by docker-container-rerun.
Use this skill only when all of the following are true:
docker run, not docker compose.MEMORY.md.docker-container-rerun is installed and available locally.--apply may stop, remove, and recreate containers when image Ids changed.Do not use this skill when recreate commands are missing, incomplete, reconstructed from memory, or only partially known.
This skill has two explicit dependencies:
docker-container-rerunMEMORY.mdThis skill calls the bundled script from the sibling skill directory:
../docker-container-rerun/scripts/update_docker_run_container.pyIf docker-container-rerun is missing or broken, fix that first before using this skill.
This skill parses container recreate commands from the section header below inside MEMORY.md:
## 已记住的 Docker 容器固定重建命令
Under that section, each remembered container entry should include:
docker runbash code block containing the exact recreate commandExample entry using autoheal:
## 已记住的 Docker 容器固定重建命令
- **`autoheal`**:固定 docker run 重建命令
```bash
docker run -d \
--name autoheal \
--restart unless-stopped \
-e AUTOHEAL_CONTAINER_LABEL=all \
-e AUTOHEAL_INTERVAL=30 \
-e AUTOHEAL_START_PERIOD=300 \
-e CURL_TIMEOUT=30 \
-v /var/run/docker.sock:/var/run/docker.sock \
willfarrell/autoheal:latest
Keep the recreate command exact. Do not rewrite it from `docker inspect`, and do not omit flags that matter.
## Apply Modes
This skill supports two modes:
### Non-apply mode (default)
Command:
```bash
python3 scripts/run_all_docker_reruns.py
Behavior:
MEMORY.mdUse this mode when the user wants a safe inspection pass first.
Command:
python3 scripts/run_all_docker_reruns.py --apply
Behavior:
docker-container-rerun apply workflowUse this mode only when the user explicitly wants real container recreation.
MEMORY.md and locate the section that stores fixed recreate commands for remembered docker run containers.docker run command.docker-container-rerun for each container.MEMORY.md as the source of truth for the container list and fixed recreate commands.docker inspect.docker run commands.--apply explicitly.Use the bundled script for deterministic batch execution from the skill directory:
python3 scripts/run_all_docker_reruns.py
Add --apply only when the user explicitly wants to recreate containers that need updates:
python3 scripts/run_all_docker_reruns.py --apply
The script will:
MEMORY.mddocker-container-rerun script once per containerPrefer a compact Chinese grouped report for chat surfaces.
Use a detailed Chinese report by default.
Append a final 重点异常提示 section that highlights failed containers, non-running containers, and health states like starting or unhealthy.
Docker 容器批量检查结果
本次共处理:<total> 个容器
- 已更新:<updated_count> 个
- 已是最新:<up_to_date_count> 个
- 执行失败:<failed_count> 个
【本次发现的容器】
1. <container_name> - <image>
2. <container_name> - <image>
...
【已更新】
1. <container_name>
- 镜像:<image>
- Tag:<tag>
- Image Id:<old_id> → <new_id>
- 版本提示:<version_hint_or_无>
- 当前状态:<status>
- 健康检查:<health_or_无>
- 最近日志:<logs_tail_or_无>
【已是最新】
1. <container_name>
- 镜像:<image>
- Tag:<tag>
- Image Id:<same_id>
- 当前状态:<status>
- 健康检查:<health_or_无>
【执行失败】
1. <container_name>
- 原因:<error>
【重点异常提示】
1. <container_name>
- 异常类型:<health_or_status_or_failure>
- 说明:<short_reason>
For each updated container, report:
container_nameimagetagcurrent_image_id -> latest_image_idversion_hint when availableFor each unchanged container, report:
container_nameimagetagFor each failure, report:
container_nameMEMORY.md instead of a hardcoded container list.docker-container-rerun skill for the single-container check/apply workflow.