Home

Awesome

Docker Dashboard npm version Build Status UT

:computer::chart_with_upwards_trend:Console based docker dashboard, base on blessed and blessed-contrib.

Install

$ npm install -g docker-dashboard

Note: need to install the docker before use, and only support unix socket.

In the following environment test passed:

OSDockerNodejs
Ubuntu 16.04 LTSv1.12.6v8.10.0
Fedora 25v1.12.6v8.11.1

Other system and versions are not guaranteed.

Usage

$ docker-dashboard

Shortcut

shortcutdescription
Dshow node info, warm info and others.
Cshow container list.
Ishow image list.
Nshow network list.
Vshow volume list.
Hhelp.
scroll up.
scroll down.
Enterselect a container and show statistics.
Qexit dashboard.

Support operation with mouse.

Development

run with resource:

$ git clone git@github.com:pipiliang/docker-dashboard
$ cd docker-dashboard
$ npm i
$ npm run build
$ npm test
$ npm start

Debug by VSCode

launch.json :

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Debug",
            "type": "node",
            "request": "launch",
            "args": [
                "${workspaceRoot}/src/index.ts"
            ],
            "runtimeArgs": [
                "--nolazy",
                "-r",
                "ts-node/register"
            ],
            "sourceMaps": true,
            "cwd": "${workspaceRoot}",
            "protocol": "inspector",
            "console": "integratedTerminal"
        }
    ]
}

Thanks

License

npm