docker-compose删除镜像
时间: 2023-08-21 07:05:23 浏览: 1290
Docker中如何删除image(镜像)的方法
5星 · 资源好评率100%
要使用docker-compose删除镜像,你可以使用以下命令:
1. 首先,进入包含docker-compose.yml文件的目录。
2. 然后,运行以下命令来删除镜像:
```
docker-compose down --rmi all
```
这将停止并删除与docker-compose文件相关的所有容器,并删除它们使用的镜像。
#### 引用[.reference_title]
- *1* [Docker 删除所有容器和镜像](https://blog.csdn.net/h13710501070/article/details/123528498)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [一键删除docker-compose镜像和容器](https://blog.csdn.net/caiqinghai1981/article/details/128691657)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [docker-compose的安装卸载与使用](https://blog.csdn.net/qq_44990139/article/details/105505776)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文