Sometimes, there are some untagged images left behind after failed builds. In order to get rid of those, this script can be used.
#!/bin/bash
docker rm $(docker ps -aq)
docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
| """ssh-copy-id for Windows. | |
| Example usage: python ssh-copy-id.py ceilfors@my-remote-machine | |
| This script is dependent on msysgit by default as it requires scp and ssh. | |
| For convenience you can also try that comes http://bliker.github.io/cmder/. | |
| origin url: https://gist.github.com/ceilfors/fb6908dc8ac96e8fc983 | |
| """ | |
| import argparse, os | |
| from subprocess import call, PIPE |