15 Star 84 Fork 21

liang / docker-dashboard

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
readme.md 2.28 KB
一键复制 编辑 原始数据 按行查看 历史
liang 提交于 2020-04-19 13:02 . refactor with Inversify

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:

OS Docker Nodejs
Ubuntu 16.04 LTS v1.12.6 v8.10.0
Fedora 25 v1.12.6 v8.11.1

Other system and versions are not guaranteed.

Usage

$ docker-dashboard

Shortcut

shortcut description
D show node info, warm info and others.
C show container list.
I show image list.
N show network list.
V show volume list.
H help.
scroll up.
scroll down.
Enter select a container and show statistics.
Q exit 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

JavaScript
1
https://gitee.com/liangw/docker-dashboard.git
git@gitee.com:liangw/docker-dashboard.git
liangw
docker-dashboard
docker-dashboard
master

搜索帮助