diff --git a/plugins/dock/dock.plugin.zsh b/plugins/dock/dock.plugin.zsh index e5b9727e1..d790fad08 100644 --- a/plugins/dock/dock.plugin.zsh +++ b/plugins/dock/dock.plugin.zsh @@ -4,7 +4,6 @@ cat <<-USAGE usage: dock clean Remove all stopped containers - info Info on Docker setup help show Docker cheat sheet USAGE } @@ -15,53 +14,17 @@ function dock_clean { [ "$1" = "images" ] && docker rmi $(docker images -q); } -function dock_info { -cat <<-INFO - You are (probably) running docker locally on a Mac using Docker Toolbox. - - Docker Machine is the new boot2docker thing. You have a virtual machine - created called 'default'. You can check the status by running. - - docker-machine status default - - If it's not 'Running', you can bring it up with docker-machine start - - You should have this in your profile: - - ### Docker - export DOCKER_TLS_VERIFY="1" - export DOCKER_HOST="tcp://192.168.99.100:2376" - export DOCKER_CERT_PATH="/Users/nathan/.docker/machine/machines/default" - export DOCKER_MACHINE_NAME="default" - - and, you should have this in your /etc/hosts - - ## Docker Machine - 192.168.99.100 docker d - - So, you can access local running containers, by going to: - - http://d: -INFO -} - function dock_help { cat <<-HELP # list local images docker images - # build a tagged docker docker image; + # build a tagged docker image; docker build -t ; - ## Example: - docker build -t chicksphotocracy/photoop:latest . - # run a docker image as a daemon on a port; docker run -d --name -p ; - ## Example: - docker run -t -i -p 5678:5678 chicksphotocracy/photoop:1.9.0 - # run bash in a container; docker exec -ti bash; @@ -71,6 +34,8 @@ cat <<-HELP # remove a container docker rm + # view logs from a container + docker logs -f HELP } @@ -79,7 +44,6 @@ function dock () { dock_usage; else [ "$1" = "clean" ] && dock_clean "$2" - [ "$1" = "info" ] && dock_info [ "$1" = "help" ] && dock_help fi }