-
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
- Delete all untagged images
| # -*- coding: utf-8 -*- | |
| # based on this code | |
| # http://code.activestate.com/recipes/577423-convert-csv-to-xml/ | |
| # convert Odoo csv files in xml files | |
| # csv is easy to maintain but xml data have noupdate feature | |
| # Limitations: | |
| # - relation field One2many is NOT supported | |
| # - csv should have 'id' as first column |
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
| #!/usr/bin/env python | |
| # Reflects the requests from HTTP methods GET, POST, PUT, and DELETE | |
| # Written by Nathan Hamiel (2010) | |
| from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler | |
| from optparse import OptionParser | |
| class RequestHandler(BaseHTTPRequestHandler): | |
| def do_GET(self): |
| """ | |
| Use with | |
| bin/instance run export_skin_folder.py | |
| This script will extract the portal_skins folder | |
| named in SKINFODLER_NAME to the DEST directory | |
| """ | |
| import os | |
| import sys | |
| PLONE_PORTAL = 'Plone' |
| # ~/.gitconfig | |
| [branch] | |
| autosetupmerge = true | |
| [push] | |
| default = current | |
| [core] | |
| excludesfile = .gitignore |