Skip to content

Instantly share code, notes, and snippets.

View tywkeene's full-sized avatar
💭
bruh

Tyrell Keene tywkeene

💭
bruh
  • Contrast Security
  • United States
View GitHub Profile
@tywkeene
tywkeene / docker-nuke.rb
Last active August 29, 2015 14:09
A simple command line tool to nuke your docker
#!/usr/bin/env ruby
require 'docker'
actions = {
"rmi" => lambda{|force|
Docker::Image.all.map{|img|
puts img.id[0..12]
img.remove(:force => force)}
},
"rm" => lambda{|force|