-
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # This is how I used it: | |
| # $ cat ~/.bash_history | bash-history-to-zsh-history >> ~/.zsh_history | |
| import sys | |
| def main(): |
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
| <!doctype html> | |
| <html ng-app="project"> | |
| <head> | |
| <title>Angular: Service example</title> | |
| <script src="http://code.angularjs.org/angular-1.0.1.js"></script> | |
| <script> | |
| var projectModule = angular.module('project',[]); | |
| projectModule.factory('theService', function() { | |
| return { |
| # Apache: | |
| # Set up http://mydomain.com/data to route to NodeJS at port 3000 on the same machine. | |
| # | |
| # Do this in your .conf file: | |
| <Location /data> | |
| ProxyPassReverse http://localhost:3000/data | |
| ProxyPass http://localhost:3000/data | |
| </Location> |
| #!/usr/bin/env bash | |
| # Configurable variables | |
| database='vagrant' | |
| username='vagrant' | |
| password='vagrant' | |
| echo '' | |
| echo ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' | |
| echo ' Bootstrapping Ubuntu Precise 32bit for Laravel 4' |
| #!/usr/bin/env bash | |
| apt-get update | |
| echo mysql-server-5.5 mysql-server/root_password password PASSWORD | debconf-set-selections | |
| echo mysql-server-5.5 mysql-server/root_password_again password PASSWORD | debconf-set-selections | |
| apt-get install -y mysql-common mysql-server mysql-client | |
| apt-get install -y apache2 |