Rewrote docker client to reduce dependencies ♻️

This commit is contained in:
Andrejs Baranovskis
2024-11-20 17:03:37 +01:00
parent eacbb14279
commit 2618346a32
5 changed files with 103 additions and 138 deletions

View File

@@ -1780,7 +1780,7 @@ Note the use of `|` after `source:`, this allows you to insert a multi-line stri
### Docker
The Docker widget allows you to monitor your Docker containers.
To enable this feature, ensure that your setup provides access to the **docker.sock** file.
To enable this feature, ensure that your setup provides access to the **docker.sock** file (also you may use a TCP connection).
Add the following to your `docker-compose` or `docker run` command to enable the Docker widget:
@@ -1814,9 +1814,16 @@ To integrate the Docker widget into your dashboard, include the following snippe
```yaml
- type: docker
host-url: tcp://localhost:2375
cache: 1m
```
#### Properties
| Name | Type | Required | Default |
| ---- | ---- | -------- | ------- |
| host-url | string | no | `unix:///var/run/docker.sock` |
#### Leveraging Container Labels
You can use container labels to control visibility, URLs, icons, and titles within the Docker widget. Add the following labels to your container configuration for enhanced customization: