mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 16:37:34 +00:00
chore: lint cleanup and version corrections
- Accept benign linter changes (version notes, explicit tags, formatting) - Fix incorrect version downgrades introduced by linter: - golang:1.22→1.26 (restored) - rust:1.82→1.95 (restored) - 23 files updated
This commit is contained in:
+3
-1
@@ -21,9 +21,11 @@ $ docker image rm [选项] <镜像1> [<镜像2> ...]
|
||||
|------|------|------|
|
||||
| **短 ID** | ID 的前几位 (通常 3-4 位)| `docker rmi 501` |
|
||||
| **长 ID** | 完整的镜像 ID | `docker rmi 501ad78535f0...` |
|
||||
| **镜像名:标签** | 仓库名和标签 | `docker rmi redis:alpine` |
|
||||
| **镜像名:标签** | 仓库名和标签 | `docker rmi redis:7.0` |
|
||||
| **镜像摘要** | 精确的内容摘要 | `docker rmi nginx@sha256:...` |
|
||||
|
||||
> **版本提示**:建议使用 **镜像名:标签** 的方式删除,特别是当需要明确清理特定版本的镜像时。例如 `docker rmi redis:7.0` 比 `docker rmi redis:latest` 更清晰且安全。
|
||||
|
||||
#### 使用短 ID 删除
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user