Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikebobadilla/a7957b759cd63cd2c34b37f8c812576a to your computer and use it in GitHub Desktop.
Save mikebobadilla/a7957b759cd63cd2c34b37f8c812576a to your computer and use it in GitHub Desktop.

Revisions

  1. mikebobadilla created this gist Jan 3, 2020.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    docker ps -a | awk '/Exited/ { print $1 }' | xargs docker rm
    docker images | awk '/none/ { print $3 }' | xargs docker image rm