iobroker.docker-manager 0.1.0 → 0.1.3
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 +54 -8
- package/admin/assets/{index-BF04nru-.js → index-DiHGumzD.js} +159 -137
- package/admin/index_m.html +2 -2
- package/admin/tab_m.html +2 -2
- package/build/lib/DockerManager.js +997 -35
- package/build/lib/DockerManager.js.map +1 -1
- 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 +53 -29
- package/package.json +11 -11
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,59 @@ 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
|
+
|
|
51
88
|
<!--
|
|
52
89
|
Placeholder for the next version (at the beginning of the line):
|
|
53
90
|
### **WORK IN PROGRESS**
|
|
54
91
|
-->
|
|
55
92
|
|
|
56
93
|
## Changelog
|
|
57
|
-
### 0.1.
|
|
94
|
+
### 0.1.3 (2025-10-15)
|
|
95
|
+
|
|
96
|
+
- (@GermanBluefox) Updated packages
|
|
97
|
+
|
|
98
|
+
### 0.1.2 (2025-10-09)
|
|
99
|
+
|
|
100
|
+
- (@GermanBluefox) Added volume browsing
|
|
101
|
+
- (@GermanBluefox) Added text file read from volume
|
|
102
|
+
|
|
103
|
+
### 0.1.1 (2025-09-26)
|
|
58
104
|
|
|
59
105
|
- (@GermanBluefox) Added network tab
|
|
60
106
|
|