Docker alias and function

 cd /opt/ && rm -f dc.bash && wget https://dl.dropboxusercontent.com/u/6028168/dc.bash && source dc.bash

----------------------------------------------------

dc - Docker-compose abbreviation
dcup - Docker-compose create and start containers
dcupd - create and start containers in background

----------------------------------------------------

dl - Get latest container ID
di - Get docker images
dcs - Get container process
dca - Get process included stop container
dcip - Get ip of container
dcips - Get docker ps with ips
doins - inspect last container created
dbash - Bash into running container by Name

----------------------------------------------------

dgrep - search info by Name
dgrepr - search info by Name in runiing containers
digrep - search image id by Name

-----------------------------------------------------

dcbu - Dockerfile build (docker build -t=NAME .)
dcpu - Pull docker image
dccup - Docker-compose create and start containers
dccupd - Docker-compose start containers in background

-----------------------------------------------------

dri - Show all unused images
drim - Delete all unused images
dcrmp - Remove docker container by pattern
dcunct - Show unused containers
dcunrm - Delete unused containers

-----------------------------------------------------

dkall - kill all containers
dkillp - container kill by pattern
dstop - Stop all containers

############ Some useful tips ################
-----------------------------------------------------
# dc.up - to update the do.bash version #
# transfer - upload file to transfer.sh service #
# nst - Get info about network (netstat -nlp|grep) #
-----------------------------------------------------