Skip to content

docker_logs Source docker_host Parameter Ignored for Unix Sockets #23974

@vincentnonim

Description

@vincentnonim

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: docker_logsAnything `docker_logs` source relatedtype: bugA code related bug.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions