dcli is cli for Docker.
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.
dcli ls
ls command has three options.
Lists only containers.
dcli ls -c
or
dcli ls --container
Lists only images.
dcli ls -i
or
dcli ls --image
Lists only volumes.
dcli ls -v
or
dcli ls --volume
Starts a container that you already have. start command has 1 option.
dcli start
Starts whole containers that you already have.
dcli start --all
Stops a container that you already have.
dcli stop
Stops whole containers that you already have.
dcli stop --all
Removes a container that you already have. rm command has 1 option
dcli rm
Removes a contaniner that is running
dcli rm -f
Inspects a container that you already have.
inspect command has 1 option.
dcli inspect
This option uses grep
via unix pipes
.
dcli inspect -i
-i
means IPAddres.
dcli can even dump your database containers.
- For postgre containers;
dcli dump --postgre
- For mysql containers;
dcli dump --mysql