-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
source: docker_logsAnything `docker_logs` source relatedAnything `docker_logs` source relatedtype: bugA code related bug.A code related bug.
Description
A note for the community
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Problem
Hi,
The docker_logs
source incorrectly ignores the explicitly configured docker_host
parameter when the value specifies a Unix socket (i.e., starts with unix://
or is a plain path). Instead of using the configured value, the source silently falls back to the connection logic that checks the DOCKER_HOST
environment variable.
The issue is probably related to this change : #21088 as it's working in v0.48.0 but not in > v0.49.0
Regards,
Configuration
sources:
my_docker_logs:
type: "docker"
# Explicitly set to Unix socket
docker_host: "unix:///var/run/docker.sock"
Version
v0.50.0
Debug Output
Example Data
No response
Additional Context
No response
References
No response
ryn9 and denwood
Metadata
Metadata
Assignees
Labels
source: docker_logsAnything `docker_logs` source relatedAnything `docker_logs` source relatedtype: bugA code related bug.A code related bug.