docs: update docker/use

This commit is contained in:
Administrator 2021-09-02 03:49:55 +00:00 committed by John Smith
parent 96f9289a6e
commit 029d36e754

View File

@ -2,7 +2,7 @@
title: docker的使用 title: docker的使用
description: docker的简单使用 description: docker的简单使用
published: true published: true
date: 2021-08-06T02:35:25.997Z date: 2021-09-02T03:49:53.653Z
tags: docker tags: docker
editor: markdown editor: markdown
dateCreated: 2021-08-02T07:26:50.035Z dateCreated: 2021-08-02T07:26:50.035Z
@ -122,6 +122,20 @@ $ docker save 镜像ID或名称 > 导出名称.tar
$ docker load < 导入名称.tar $ docker load < 导入名称.tar
``` ```
## 删除镜像
```bash
$ docker image rm 镜像ID或名称
```
```bash
$ docker rmi 镜像ID或名称
```
批量删除 **\<none\>** 镜像
```bash
$ docker rmi $(docker images | grep "none" | awk '{print $3}')
```
## 删除容器 ## 删除容器
```bash ```bash