Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jd557/ahab

A simple docker/boot2docker/podman helper script
https://github.com/jd557/ahab

docker shell

Last synced: 22 days ago
JSON representation

A simple docker/boot2docker/podman helper script

Awesome Lists containing this project

README

        

Ahab
====

A simple docker/boot2docker/docker-machine/podman helper script, to help with tedious docker tasks.
Named after [Captain Ahab](https://en.wikipedia.org/wiki/Captain_Ahab_(Moby-Dick)).

Commands
--------

* `sail`:
Start/Restart boot2docker/docker-machine/podman machine. This command needs to be followed by the machine name if you are using docker-machine.
* `trust `
Trust an insecure registry by adding a `EXTRA_ARGS="--insecure-registry "` line to the boot2docker profile in the boot2docker image.
This command needs to be followed by the machine name if you are using docker-machine
(you probably want to use the `--engine-insecure-registry` option when creating the machine, though).
* `follow `:
Search for container by image name and follow its logs, like `docker logs -f `.
If the container dies, follow searches for the container again. Hit CTRL-C to stop.
(eg. `./ahab.sh follow elasticsearch -t`). It blocks until there is at least one container running that image.
* `execute `: Search for an image and launch a container
(eg. `./ahab.sh execute elastic -p 9200:9200`).
* `board `: Start a shell inside a container
(e.g. `./ahab.sh board elasticsearch`).
* `kill `: Stop every running container (with `docker stop`) and remove them (with `docker rm`).
* `dispose `: Remove unused docker images (marked as ``) with `docker rmi`.