← Winnitude! Search  ·  Reader Mode (714 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 6 LINKS

Add XDG Base Directory support for configuration file lookup · Issue #2569 · docker-java/docker-java

Repository navigation

Add XDG Base Directory support for configuration file lookup  #2569


New issue

New issue

Open

Open
Add XDG Base Directory support for configuration file lookup #2569

Description

@Aashivdev's profile Aashivdev opened on Jan 3, 2026

Hi! I'd like to propose adding support for the XDG Base Directory specification as a secondary configuration location.
Current Behavior:
DefaultDockerClientConfig looks for configuration in ~/.docker/config.json (and other Docker-standard locations).
Proposed Behavior:
Add ~/.config/docker-java/configuration.properties as an additional lookup location, maintaining full backward compatibility.

Rationale:

Many users prefer XDG conventions to keep ~/ clean
Hundreds of config files in home directory becomes difficult to manage
This would be additive only - existing paths continue to work
Read-only nature means low risk

Implementation Approach:

Primary: Check existing locations (current behavior unchanged)
Secondary: Check ~/.config/docker-java/configuration.properties if primary not found
Fallback to defaults as currently done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions