alias d=docker alias dc=docker-compose alias dm=docker-machine alias dtop='d stats $(d ps --format={{.Names}})' alias ctop='d run -it --name ctop --rm -v /var/run/docker.sock:/var/run/docker.sock:ro quay.io/vektorlab/ctop:latest' alias dlog='d logs --follow --timestamps --tail=10000' dadopt() { local remote="$1" local sock="/tmp/$remote.sock" unlink "$sock" ssh -nNT -L "$sock:/var/run/docker.sock" "$remote" & chmod og-rwx "$sock" export DOCKER_HOST="unix://$sock" }