iobroker.docker-manager 0.1.0 → 0.1.5
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/LICENSE +1 -1
- package/README.md +60 -9
- package/admin/assets/{index-BF04nru-.js → index-Bc5ISuP7.js} +285 -141
- package/admin/index_m.html +2 -2
- package/admin/tab_m.html +2 -2
- package/build/lib/DockerMonitor.js +185 -33
- package/build/lib/DockerMonitor.js.map +1 -1
- package/build/main.js +87 -25
- package/build/main.js.map +1 -1
- package/io-package.json +78 -44
- package/package.json +17 -15
- package/build/lib/DockerCommands.js +0 -1042
- package/build/lib/DockerCommands.js.map +0 -1
- package/build/lib/DockerManager.js +0 -1315
- package/build/lib/DockerManager.js.map +0 -1
- package/build/lib/dockerManager.types.js +0 -3
- package/build/lib/dockerManager.types.js.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025 bluefox <dogafox@gmail.com>
|
|
3
|
+
Copyright (c) 2025-2026 bluefox <dogafox@gmail.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
# ioBroker Docker manager Adapter
|
|
4
4
|
|
|
5
|
-

|
|
6
|
+

|
|
7
|
+
[](https://www.npmjs.com/package/iobroker.docker-manager)
|
|
8
8
|
|
|
9
|
-

|
|
10
|
+
[](https://weblate.iobroker.net/engage/adapters/?utm_source=widget)
|
|
11
|
+
[](https://www.npmjs.com/package/iobroker.docker-manager)
|
|
12
12
|
|
|
13
13
|
**This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.**
|
|
14
14
|
For more details and for information how to disable the error reporting, see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)!
|
|
@@ -48,13 +48,64 @@ In ioBroker notation, it is like an instance of an adapter.
|
|
|
48
48
|
- On Linux: `systemctl status docker`
|
|
49
49
|
- On Windows and macOS, Docker Desktop should be running.
|
|
50
50
|
|
|
51
|
+
## Using Docker API
|
|
52
|
+
|
|
53
|
+
The adapter could use the Docker API to communicate with the Docker daemon on other hosts. To enable this feature, you need to configure the Docker daemon to listen on a TCP socket.
|
|
54
|
+
|
|
55
|
+
### Enable Docker API on Linux
|
|
56
|
+
|
|
57
|
+
1. Open the Docker service configuration file. The location of this file may vary depending on your Linux distribution. Common locations include:
|
|
58
|
+
- `/lib/systemd/system/docker.service`
|
|
59
|
+
- `/etc/docker/daemon.json`
|
|
60
|
+
- `/etc/systemd/system/docker.service`
|
|
61
|
+
2. If the file is `/etc/docker/daemon.json`, add or modify the `hosts` entry to include the TCP socket. For example:
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2375"]
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
If the file is a systemd service file (e.g., `/lib/systemd/system/docker.service`), modify the `ExecStart` line to include the `-H tcp://0.0.0.0:2375` option. For example:
|
|
68
|
+
```
|
|
69
|
+
ExecStart=/usr/bin/dockerd -H fd:// -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375 --containerd=/run/containerd/containerd.sock
|
|
70
|
+
```
|
|
71
|
+
3. Save the changes and exit the editor.
|
|
72
|
+
4. Restart the Docker service to apply the changes:
|
|
73
|
+
```bash
|
|
74
|
+
sudo systemctl daemon-reload
|
|
75
|
+
sudo systemctl restart docker
|
|
76
|
+
```
|
|
77
|
+
5. Verify that the Docker daemon is listening on the TCP socket by running:
|
|
78
|
+
```bash
|
|
79
|
+
netstat -tuln | grep 2375
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Todo
|
|
83
|
+
|
|
84
|
+
- BackItUp should support `/opt/iobroker/docker-volumes`
|
|
85
|
+
- Think about js-controller will remove dockers which are not used anymore but has label
|
|
86
|
+
- Docker installer: `iob docker <remove>`
|
|
87
|
+
- Progress indicator: add/pull image, create container
|
|
88
|
+
|
|
51
89
|
<!--
|
|
52
90
|
Placeholder for the next version (at the beginning of the line):
|
|
53
91
|
### **WORK IN PROGRESS**
|
|
54
92
|
-->
|
|
55
93
|
|
|
56
94
|
## Changelog
|
|
57
|
-
### 0.1.
|
|
95
|
+
### 0.1.5 (2026-01-09)
|
|
96
|
+
|
|
97
|
+
- (@GermanBluefox) Updated packages
|
|
98
|
+
|
|
99
|
+
### 0.1.3 (2025-10-15)
|
|
100
|
+
|
|
101
|
+
- (@GermanBluefox) Updated packages
|
|
102
|
+
|
|
103
|
+
### 0.1.2 (2025-10-09)
|
|
104
|
+
|
|
105
|
+
- (@GermanBluefox) Added volume browsing
|
|
106
|
+
- (@GermanBluefox) Added a text file read from volume
|
|
107
|
+
|
|
108
|
+
### 0.1.1 (2025-09-26)
|
|
58
109
|
|
|
59
110
|
- (@GermanBluefox) Added network tab
|
|
60
111
|
|
|
@@ -66,4 +117,4 @@ In ioBroker notation, it is like an instance of an adapter.
|
|
|
66
117
|
|
|
67
118
|
The MIT License (MIT)
|
|
68
119
|
|
|
69
|
-
Copyright (c) 2025 bluefox <dogafox@gmail.com>
|
|
120
|
+
Copyright (c) 2025-2026 bluefox <dogafox@gmail.com>
|