dry
dry is an interactive console application that connects to a Docker host, shows the list of containers and offers a few Docker commands to run on them.
It can be used as alternative to the following commands of the official Docker cli:
- inspect
- kill
- logs
- ps
- rm
- stats
- start
- stop
The first release is near.
Installation
Implemented in Go, make sure that $GOPATH exists.
$ go get github.com/moncho/dry
$ cd $GOPATH/src/github.com/moncho/dry
$ make install
A mechanism to install binaries will be provided in the future.
Usage
Open a console, type dry
. It will connect to whatever host defined in $DOCKER_HOST environment variable.
dry -p
launches dry with pprof package active.
Debug
Debugging can be done using godebug.
Install it, the insert breakpoint anywhere you want:
_ = "breakpoint"
Then, run the debugger:
godebug run -instrument github.com/moncho/dry,github.com/moncho/dry/app,github.com/moncho/dry/docker,github.com/moncho/dry/ui,github.com/moncho/dry/appui main.go
Contributing
All contributions are welcome.
- Fork the project.
- Make changes on a topic branch.
- Pull request.
Copyright and license
Code released under the MIT license. See
LICENSE for the full license text.
Credits
Built on top of:
Also reused some code and ideas from the Docker project and mop.