帮助命令
| docker version |
| docker info |
| docker 命令 --help |
docker 命令行的帮助文档地址 :https://docs.docker.com/reference/
镜像命令
docker images 查看镜像
| docker images |
| [root@LuoKing /] |
| REPOSITORY TAG IMAGE ID CREATED SIZE |
| hello-world latest feb5d9fea6a5 6 months ago 13.3kB |
| |
| |
| |
| |
| |
| |
| |
| [root@LuoKing /] |
| |
| Usage: docker images [OPTIONS] [REPOSITORY[:TAG]] |
| |
| List images |
| |
| Options: |
| -a, --all Show all images (default hides intermediate images) |
| -q, --quiet Only show image IDs |
docker search 搜索镜像
| [root@LuoKing /] |
| NAME DESCRIPTION STARS OFFICIAL AUTOMATED |
| mysql MySQL is a widely used, open-source relation… 12424 [OK] |
| mariadb MariaDB Server is a high performing open sou… 4787 [OK] |
| ...... |
| [root@LuoKing /] |
| |
| Usage: docker search [OPTIONS] TERM |
| |
| Search the Docker Hub for images |
| |
| Options: |
| -f, --filter filter Filter output based on conditions provided |
| |
| 举例: |
| [root@LuoKing /] |
| NAME DESCRIPTION STARS OFFICIAL AUTOMATED |
| mysql MySQL is a widely used, open-source relation… 12424 [OK] |
| |
镜像下载
| 默认为最新版本 |
| |
| 指定版本下载 |
| |
| [root@LuoKing /] |
| 5.7: Pulling from library/mysql |
| 72a69066d2fe: Pull complete |
| 93619dbc5b36: Pull complete |
| 99da31dd6142: Pull complete |
| 626033c43d70: Pull complete |
| 37d5d7efb64e: Pull complete |
| ac563158d721: Pull complete |
| d2ba16033dad: Pull complete |
| 0ceb82207cd7: Pull complete |
| 37f2405cae96: Pull complete |
| e2482e017e53: Pull complete |
| 70deed891d42: Pull complete |
| Digest: sha256:f2ad209efe9c67104167fc609cca6973c8422939491c9345270175a300419f94 |
| Status: Downloaded newer image for mysql:5.7 |
| docker.io/library/mysql:5.7 |
删除镜像
| docker rmi IMAGEID |
| [root@LuoKing /] |
| Untagged: hello-world:latest |
| Untagged: hello-world@sha256:10d7d58d5ebd2a652f4d93fdd86da8f265f5318c6a73cc5b6a9798ff6d2b2e67 |
| Deleted: sha256:feb5d9fea6a5e9606aa995e879d862b825965ba48de054caab5ef356dc6b3412 |
| |
| docker rmi -f $(docker images -aq) |
| |
容器命令
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 字符编码:从基础到乱码解决