[Feature Request] Docker autodiscovery labels - string replacements #4476
-
DescriptionI would like the autodiscovery docker labels to have some basic string replacements available for e.g. container name and image/tag. These are already fetched from the API through the docker.listContainers() call. Example docker-compose: services:
emby:
image: lscr.io/linuxserver/emby:latest
container_name: emby
ports:
- 8096:8096
restart: unless-stopped
labels:
- homepage.group=Media
- homepage.name=$${name} # Will be replaced with 'emby'
- homepage.icon=emby.png
- homepage.href=http://emby.home/
- homepage.description=$${image} # Will be replaced with 'lscr.io/linuxserver/emby:latest' OtherNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I've made a PR for this here: #4475 |
Beta Was this translation helpful? Give feedback.
-
I ended up bodging this together with a custom api widget and my WUD's api..
%N here is the name of my systemd service, which I conveniently uses as the name for the container as well. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically closed because it was marked as answered. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
I ended up bodging this together with a custom api widget and my WUD's api..
%N here is the name of my systemd service, which I conveniently uses as the name for the container as well.