npm i @enesusta/dcli -g
Note:
Make sure that variables like grep, docker, sh are defined on your $PATH variable.
Otherwise it may not work.
default command has three options.
| Command | Description |
|---|---|
| -c | List only containers and prints information of each container |
| -ci | Prints only container IDs and names |
Lists only containers
dcli -cLists only images
dcli -iLists only volumes
dcli -vStarts a container that you already have. start command has 1 option.
dcli startStarts whole containers that you already have.
dcli start --allStops a container that you already have.
dcli stopStops whole containers that you already have.
dcli stop --allRemoves a container that you already have. rm command has 1 option
dcli rmRemoves a contaniner that is running
dcli rm -for
dcli rm --forceRemoves a image that you already have.
dcli rmiInspects a container that you already have.
inspect command has 1 option.
dcli inspectThis option uses grep via unix pipes.
dcli inspect -h-h means host.
dcli can even dump your database containers.
- For postgre containers;
dcli dump --postgre- For mysql containers;
dcli dump --mysql










