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

https://github.com/f1nnix/docker-helpers

Docker and docker-machine CLI shortcuts and helpers for Linux and macOS
https://github.com/f1nnix/docker-helpers

bash bash-alias docker docker-compose docker-machine linux macos shortcuts

Last synced: 10 months ago
JSON representation

Docker and docker-machine CLI shortcuts and helpers for Linux and macOS

Awesome Lists containing this project

README

          

# docker-helpers

Docker and docker-machine CLI shortcuts and helpers for Linux and macOS

## Install

Clone repo and add to `~/.basrc` or `~/.zshrc` line:

source 'path-to-repo/docker-helpers.sh'

E.g. you cloned repo to `~/dev/docker-helpers`. So, add to `~/.bashrc` line:

source '~/dev/docker-helpers/docker-helpers.sh'

## Usage

### docker-machine

* **dml** -- list all docker machines (hosts);
* **dms ** -- shell to specified docker machine;
* **dme ** -- env to specified machine, list volumes, images and ALL containers;
* **dmrc ** -- regenerate certificated for specified machine.

### docker

* **dcl** -- list ALL containers for active (env'ed) machine;
* **dcb ** -- run interactive bash shell for specified container. After, don't forget to `exit`.