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
- Host: GitHub
- URL: https://github.com/f1nnix/docker-helpers
- Owner: f1nnix
- License: mit
- Created: 2016-11-28T20:22:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-07-07T11:06:02.000Z (over 7 years ago)
- Last Synced: 2025-02-04T18:42:34.728Z (12 months ago)
- Topics: bash, bash-alias, docker, docker-compose, docker-machine, linux, macos, shortcuts
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.