add system prune instructions (#2918)

This commit is contained in:
Jarrod Pooler 2017-04-19 14:42:57 -05:00 committed by John Mulhausen
parent 7e59731fd8
commit b656513b9f
1 changed files with 8 additions and 0 deletions

View File

@ -45,6 +45,14 @@ To remove unnecessary artifacts:
There are no running or stopped containers on this host. A fast way to
remove old containers is the following:
As of Docker Engine version 1.13 you can now use the `docker system prune` command to achieve this:
```none
$ docker system prune -a
```
Older versions of the Docker Engine should reference the command below:
```none
$ docker rm $(docker ps -a -q)
```