This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| remove_dangling_images() { | |
| echo "Removing dangling images ..." | |
| docker rmi $(docker images -f dangling=true -q) | |
| } | |
| remove_unused_images() { | |
| echo "Removing unused images ..." | |
| docker images -aq | xargs -l10 docker rmi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # Usage | |
| # $ docker-machine create my-machine123 -d virtualbox | |
| # $ ruby <(curl -L http://git.io/vvFRw) my-machine123 | |
| # https://gist.github.com/lazabogdan/fa769cb5f80085a2b78f | |
| require 'erb' | |
| app_path = Dir.getwd |
NewerOlder