Sign inSign up

lirantal/dockly

By lirantal

•Updated 3 days ago

Immersive terminal interface for managing docker containers and services

Image
3

100K+

lirantal/dockly repository overview

Node Version view on npm view on npm npm module downloads Dependency Status Codefresh build status Install Size Security Responsible Disclosure

🌟 Featured on Awesome Docker DevOps Weekly terminals are sexy

dockly-demo-2

⁠Install

Install the API module as a dependency in your project so you can easily use it to query Operations Orchestration REST API

npm install -g dockly

⁠Usage

Just fire up dockly and it will automatically connect to your localhost docker daemon through the unix socket:

dockly

⁠Command line options:

It's also possible to provide command line options for dockly to customize the docker connection

ParamTypeDescription
-s or --socketPathstringDocker socket to connect to
-h or --helpnullDisplay help
-v or --versionnullDisplay version information

⁠Docker Support

⁠Run from docker

You can run dockly using docker:

docker run -it -v /var/run/docker.sock:/var/run/docker.sock lirantal/dockly

⁠Build

If you wish to build dockly as a docker image yourself, you can run the following:

$ docker build -t dockly .

$ docker run -it --name dockly -v /var/run/docker.sock:/var/run/docker.sock dockly

⁠FAQ

  1. Unsupported Node.js Version

If you're getting the following error in your CLI:

root@neo:~# dockly
/usr/local/lib/node_modules/dockly/src/screen.js:36
constructor (utils = new Map()) {
^

SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)

Or this kind of error:

Trace: TypeError: Object.values is not a function                                                                                                            
    at screen.toggleMode (/home/vokiel/.nvm/versions/node/v6.11.1/lib/node_modules/dockly/src/screen.js:149:35)
    at Screen.screen.key (/home/vokiel/.nvm/versions/node/v6.11.1/lib/node_modules/dockly/src/screen.js:190:12)
    at Screen.EventEmitter._emit
    (/home/vokiel/.nvm/versions/node/v6.11.1/lib/node_modules/dockly/node_modules/blessed/lib/events.js:98:20)

This is most likely because you're using an unsupported Node.js version. Dockly requires Node.js v7.6 and above

⁠Author

Liran Tal [email protected]⁠

Tag summary

Content type

Image

Digest

sha256:9955f9836…

Size

171.6 MB

Last updated

3 days ago

docker pull lirantal/dockly