Skip to content

Instantly share code, notes, and snippets.

@nielsonsantana
Created March 13, 2016 05:08
Show Gist options
  • Save nielsonsantana/623add98aa8e52076cbf to your computer and use it in GitHub Desktop.
Save nielsonsantana/623add98aa8e52076cbf to your computer and use it in GitHub Desktop.
output after run 'DOKKU_TRACE=1 dokku cleanup'
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ [[ -n 1 ]]
+ set -x
+ parse_args cleanup
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ cleanup =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ root != \d\o\k\k\u ]]
+ [[ cleanup != plugin:*install* ]]
+ [[ cleanup != \p\l\u\g\i\n\:\u\p\d\a\t\e ]]
++ id -un
+ export SSH_USER=root
+ SSH_USER=root
+ sudo -u dokku -E -H /usr/local/bin/dokku cleanup
+ [[ -f /home/dokku/dokkurc ]]
+ [[ -d /home/dokku/.dokkurc ]]
+ [[ -n 1 ]]
+ set -x
+ parse_args cleanup
+ for arg in '"$@"'
+ case "$arg" in
+ return 0
+ args=("$@")
+ [[ cleanup =~ ^--.* ]]
+ has_tty
++ /usr/bin/tty
+ [[ /dev/pts/1 == \n\o\t\ \a\ \t\t\y ]]
+ return 0
++ id -un
+ [[ dokku != \d\o\k\k\u ]]
+ [[ -n '' ]]
+ dokku_auth cleanup
+ export SSH_USER=root
+ SSH_USER=root
+ export SSH_NAME=default
+ SSH_NAME=default
+ plugn trigger user-auth root default cleanup
+ return 0
+ case "$1" in
+ docker_cleanup
++ docker ps -a -f status=exited -q
+ docker rm 130e77a6d75d 6ce53a35345b e166392383f5 1692f97d8d4a 9c040a0bddff 5cceac248d14 fb4cb437fd89
++ docker ps -a -f status=dead -q
+ docker rm
+ true
++ docker images -f dangling=true -q
+ exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment