Skip to content

Commit

Permalink
Docker - Update doc about clean space
Browse files Browse the repository at this point in the history
  • Loading branch information
at-github committed Apr 22, 2023
1 parent 5381f5b commit 55056b3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,26 @@ RUN apt install -y git zsh
`docker run -it <container:default_tag_latest> zsh`

`echo $0` to check current shell

## How to clean

[Source](https://docs.docker.com/config/pruning/)

The docker system prune command is a shortcut that prunes images, containers, and networks.
Volumes are not pruned by default, and you must specify the `--volumes` flag for docker system prune to prune volumes.

```shell
docker system prune
```

```shell
docker volume prune
```

```shell
docker container prune
```

```shell
docker image prune
```

0 comments on commit 55056b3

Please sign in to comment.