/dcli

CLI for Docker

Primary LanguageJavaScript

dcli

Build Status npm install size

dcli is cli for Docker.

Installation

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.

Commands

ls

dcli ls

ls command has three options.

ls containers

Lists only containers.

dcli ls -c

or

dcli ls --container
ls images

Lists only images.

dcli ls -i

or

dcli ls --image
ls volumes

Lists only volumes.

dcli ls -v

or

dcli ls --volume

start

Starts a container that you already have. start command has 1 option.

dcli start

start all

Starts whole containers that you already have.

dcli start --all

stop

Stops a container that you already have.

dcli stop

stop all

Stops whole containers that you already have.

dcli stop --all

rm

Removes a container that you already have. rm command has 1 option

dcli rm

rm force

Removes a contaniner that is running

dcli rm -f

inspect

Inspects a container that you already have.

inspect command has 1 option.

dcli inspect

inspect only IPAddress

This option uses grep via unix pipes.

dcli inspect -i

-i means IPAddres.

dump

dcli can even dump your database containers.

  • For postgre containers;
dcli dump --postgre

  • For mysql containers;
dcli dump --mysql