grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit 6a5f450cbdb324e772b9da3b8f00d69647b136ad
parent 784d2791171dcb8cfeeabe7a03e0dcdbf1173acd
Author: pyratebeard <root@pyratebeard.net>
Date:   Fri,  3 Apr 2020 23:08:10 +0100

docker - clean up old images

Diffstat:
Mtechnology/cloud/docker.md | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/technology/cloud/docker.md b/technology/cloud/docker.md @@ -5,6 +5,13 @@ docker cp <container_id>:/path/to/file /path/to/save ``` +## clean up old images +``` +docker rmi -f $(docker images --filter "dangling=true" -q) +docker image prune +``` + + ## ref - :1: https://stackoverflow.com/questions/44027873/how-to-create-a-new-docker-image-from-a-running-container-on-amazon - :2: https://stackoverflow.com/questions/43699368/configure-docker-daemon-port-to-enable-docker-apis/43713435#43713435