Code Monkey home page Code Monkey logo

docker-wrapper's Introduction

Docker command wrapper.

The docker-wrapper command is a complete superset of the docker command. It is a wrapper that shims the native docker command with useful aliases and helpers to enhance your docker workflow. This may go without saying, but docker is a required dependency for docker-wrapper.

Installation

Golang

$ go get -u github.com/clarketm/docker-wrapper

Install script

$ git clone "https://github.com/clarketm/docker-wrapper.git"
$ cd docker-wrapper && sudo sh install.sh

Usage

$ docker-wrapper wrapper --help

NAME:
        docker-wrapper โ€“ docker command wrapper.


SYNOPSIS:
        docker-wrapper subcommand [opts...]


SUB COMMANDS:

        b, build                    	 Build an image from a Dockerfile.

        e, exec                     	 Run a command in a running container.
            -b, --bash              	 Execute bash in a running container.
            -i, --interactive       	 Execute command in interactive container.
            -s, --shell             	 Execute sh in a running container.

        g, go                       	 Navigate to a docker internal storage dicetory (Linux ONLY).

        i, images                   	 List images.
            -d, --dangling          	 List all dangling images.
            -v, --verbose           	 List all images (non-truncated output).

        ip                          	 List IP address(es) for container.

        p, ps                       	 List containers.

        prune                       	 Remove unused resources.
            -a, --all               	 Remove all unused resources (containers, images, networks, volumes).
            c, containers           	 Remove all unused containers.
            i, images               	 Remove all unused images.
            n, networks             	 Remove all unused networks.
            v, volumes              	 Remove all unused volumes.

        rm                          	 Remove one or more containers.
            -a, --all               	 Remove all containers.
            -e, --exited            	 Remove all exited containers.
            -r, --running           	 Remove all running containers.

        rmi                         	 Remove one or more images.
            -a, --all               	 Remove all base images.
            -d, --dangling          	 Remove all dangling images.
            -i, --intermediate      	 Remove all images (both base AND intermediate).

        r, run                      	 Run a command in a new container.
            -i, --interactive       	 Run interactive container.

        s, stop                     	 Stop one or more running containers.
            -a, --all               	 Stop all processes/containers.

        w, wrapper                  	 Docker wrapper specific options.
            -h, --help              	 Print usage information.
            -v, --version           	 Print version number.
            cs, cheatsheet          	 Print docker command reference guide.


MANAGEMENT COMMANDS:

        cnf, conf, cnfg, config     	 Manage containers.

        c, container                	 Manage containers.

        im, img, image              	 Manage images.

        n, net, network             	 Manage networks.

        no, node                    	 Manage Swarm node.

        se, svc, service            	 Manage services.

        st, stack                   	 Manage Docker stacks.

        sw, swarm                   	 Manage Swarm.

        v, vol, volume              	 Manage volumes.
            ls                      	 List volumes.
              -d, --dangling        	 List all dangling volumes.
            rm                      	 Remove one or more volumes.
              -d, --dangling        	 Remove all dangling volumes.


EXAMPLES:
        docker-wrapper wrapper --help

TODO (before v1.0.0 release):

  • Cross-platform compilation for Darwin and Linux
  • Add completions

docker-wrapper's People

Contributors

clarketm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.