Skip to content

Instantly share code, notes, and snippets.

@GSmurf
Last active April 30, 2017 14:14
Show Gist options
  • Save GSmurf/ae1621e60320ff3f8eab0e57c428a0d8 to your computer and use it in GitHub Desktop.
Save GSmurf/ae1621e60320ff3f8eab0e57c428a0d8 to your computer and use it in GitHub Desktop.

Revisions

  1. GSmurf revised this gist Apr 30, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion bash
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    docker rm $(docker ps -qa --no-trunc --filter "status=exited")
    docker rm $(docker ps -qa --no-trunc --filter "status=exited") # ceci supprime tous les containers exited
    docker rmi $(docker images | grep "^<none>" | awk "{print $3}") # ceci supprime toutes les images non tag
  2. GSmurf created this gist Apr 30, 2017.
    1 change: 1 addition & 0 deletions bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    docker rm $(docker ps -qa --no-trunc --filter "status=exited")