dockly 3.21.4 → 3.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -7
- package/package.json +5 -5
- package/src/cli.js +18 -0
- package/src/dockerUtil.js +8 -7
- package/widgets/containers/containerList.widget.js +2 -1
package/README.md
CHANGED
|
@@ -10,17 +10,20 @@
|
|
|
10
10
|
[](https://www.npmjs.org/package/dockly)
|
|
11
11
|
[](https://www.npmjs.org/package/dockly)
|
|
12
12
|
[](https://www.npmjs.org/package/dockly)
|
|
13
|
-
[](https://snyk.io/test/npm/dockly)
|
|
14
13
|
[](./SECURITY.md
|
|
15
14
|
)
|
|
16
15
|
[](https://snyk.io/advisor/npm-package/dockly)
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
Dockly has been highlighted, featured and chosen as favorite docker container management tool on:
|
|
18
|
+
|
|
19
|
+
[](https://github.com/veggiemonk/awesome-docker) [](http://devopsweekly.com)
|
|
20
21
|
[](https://github.com/k4m4/terminals-are-sexy)
|
|
22
|
-
|
|
22
|
+
)](https://github.com/k4m4/terminals-are-sexy) [](https://mailchi.mp/programmerweekly/programmer-weekly-issue-94?e=e8c11d0390) [](https://console.dev/tools/)
|
|
23
25
|
|
|
26
|
+
<a href="https://console.dev" title="Visit Console - the best tools for developers"><img src="https://console.dev/img/badges/1.0/png/console-badge-pick-green1-dark.png" alt="Console - Developer Tool of the Week" /></a>
|
|
24
27
|
|
|
25
28
|

|
|
26
29
|
|
|
@@ -46,6 +49,9 @@ It's also possible to provide command line options for dockly to customize the d
|
|
|
46
49
|
| Param | Type | Description |
|
|
47
50
|
| --- | --- | --- |
|
|
48
51
|
| -s or --socketPath | string | Docker socket to connect to |
|
|
52
|
+
| -H or --host | string | Remote docker daemon host to connect to |
|
|
53
|
+
| -P or --port | string | Remote docker port to connect to |
|
|
54
|
+
| -T or --protocol | `http` \| `https` \| `ssh` | Remote docker protocol to connect to |
|
|
49
55
|
| --containerFilters | string | String to apply to filter shown containers |
|
|
50
56
|
| -h or --help | null | Display help |
|
|
51
57
|
| -v or --version | null | Display version information |
|
|
@@ -119,9 +125,17 @@ export LC_ALL=C.UTF-8
|
|
|
119
125
|
```
|
|
120
126
|
for more info please see [this issue](https://github.com/yaronn/blessed-contrib/issues/111)
|
|
121
127
|
|
|
122
|
-
# Author
|
|
123
|
-
Liran Tal <liran.tal@gmail.com>
|
|
124
|
-
|
|
125
128
|
## Alternatives
|
|
126
129
|
|
|
127
130
|
See [Awesome Docker list](https://github.com/veggiemonk/awesome-docker/blob/master/README.md#terminal) for similar tools to work with Docker.
|
|
131
|
+
|
|
132
|
+
# In the news
|
|
133
|
+
|
|
134
|
+
- Admin Magazine article: [Visualizing containers with clarity
|
|
135
|
+
](https://www.admin-magazine.com/Articles/Visualizing-containers-with-clarity)
|
|
136
|
+
- [A learnk8s tweet](https://twitter.com/learnk8s/status/1075677503782563840)
|
|
137
|
+
- [Dockly – Manage Docker Containers From Terminal](https://ostechnix.com/dockly-manage-docker-containers-from-terminal/)
|
|
138
|
+
- [Clever cloud CEO, Quentin Adam, tweeting about dockly](https://twitter.com/waxzce/status/1123886351924043777)
|
|
139
|
+
|
|
140
|
+
# Author
|
|
141
|
+
Liran Tal <liran.tal@gmail.com>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dockly",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.22.2",
|
|
4
4
|
"description": "Immersive terminal interface for managing docker containers and services",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
"homepage": "https://github.com/lirantal/dockly#readme",
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"blessed": "^0.1.81",
|
|
70
|
-
"blessed-contrib": "^4.
|
|
70
|
+
"blessed-contrib": "^4.10.1",
|
|
71
71
|
"chalk": "2.4.2",
|
|
72
72
|
"clipboardy": "^2.3.0",
|
|
73
|
-
"command-line-args": "^5.1.
|
|
73
|
+
"command-line-args": "^5.1.2",
|
|
74
74
|
"command-line-usage": "^5.0.5",
|
|
75
75
|
"dockerode": "2.5.8",
|
|
76
76
|
"figures": "^2.0.0",
|
|
77
|
-
"glob": "^7.
|
|
77
|
+
"glob": "^7.2.0",
|
|
78
78
|
"lockfile-lint": "^3.0.9",
|
|
79
79
|
"semver": "6.3.0"
|
|
80
80
|
},
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"standard": "^12.0.1"
|
|
83
83
|
},
|
|
84
84
|
"release": {
|
|
85
|
-
"
|
|
85
|
+
"branches": "main"
|
|
86
86
|
},
|
|
87
87
|
"standard": {
|
|
88
88
|
"ignore": [
|
package/src/cli.js
CHANGED
|
@@ -13,6 +13,24 @@ function Cli () {
|
|
|
13
13
|
type: String,
|
|
14
14
|
description: 'Docker daemon socket to connect to'
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
name: 'host',
|
|
18
|
+
alias: 'H',
|
|
19
|
+
type: String,
|
|
20
|
+
description: 'Remote docker daemon host to connect to'
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'port',
|
|
24
|
+
alias: 'P',
|
|
25
|
+
type: Number,
|
|
26
|
+
description: 'Remote docker port to connect to'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'protocol',
|
|
30
|
+
alias: 'T',
|
|
31
|
+
type: 'http' | 'https' | 'ssh',
|
|
32
|
+
description: 'Remote docker protocol to connect to'
|
|
33
|
+
},
|
|
16
34
|
{
|
|
17
35
|
name: 'help',
|
|
18
36
|
alias: 'h',
|
package/src/dockerUtil.js
CHANGED
|
@@ -9,13 +9,14 @@ class Util {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
// If a socketPath was explicitly specified, attempt connection based on it
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
const dockerlibConfig = {}
|
|
13
|
+
|
|
14
|
+
if (config.socketPath) { dockerlibConfig.socketPath = config.socketPath }
|
|
15
|
+
if (config.host) { dockerlibConfig.host = config.host }
|
|
16
|
+
if (config.port) { dockerlibConfig.port = config.port }
|
|
17
|
+
if (config.protocol) { dockerlibConfig.protocol = config.protocol }
|
|
18
|
+
|
|
19
|
+
this.dockerCon = new DockerLib(dockerlibConfig)
|
|
19
20
|
|
|
20
21
|
if (config.containerFilters) {
|
|
21
22
|
this.containerFilters = JSON.stringify(config.containerFilters.split('&').reduce((carry, e) => {
|
|
@@ -64,7 +64,8 @@ class myWidget extends ListWidget {
|
|
|
64
64
|
container.Id.substring(0, 5),
|
|
65
65
|
container.Names[0].substring(0, 40),
|
|
66
66
|
container.Image.substring(0, 35),
|
|
67
|
-
container.Command
|
|
67
|
+
// remove any new lines or carriage return line feed from the string in container.Command
|
|
68
|
+
container.Command.substring(0, 30).replace(/(\r\n|\n|\r)/gm, ''),
|
|
68
69
|
container.State,
|
|
69
70
|
container.Status
|
|
70
71
|
]
|