Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Split .docker config into separate directories following platform conventions

未关闭
#6,729 0 条评论 7 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
docker, go

调研方向

首先检查当前的 .docker 目录以及相关 issue #2738 和 #2423。比较提议的 Unix、Windows 和 macOS 路径,然后确定它们是否能与 Docker daemon 安全交互,以及如何保持现有路径的兼容性。当约定、迁移或 fallback 行为以及兼容性问题都得到足够清晰的解决,可以进行 PR 时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

kind/feature status/0-triage

Split the current .docker directory into separate directories for configuration, data, cache, and runtime, following XDG conventions on Unix and sensible platform-specific paths on Windows and macOS.

Example:

Purpose Unix XDG Unix w/o XDG Unix System Level Windows User Level Windows System Level macOS User Level macOS System Level
Configuration $XDG_CONFIG_HOME/docker ~/.docker /etc/docker/cli %APPDATA%\Docker %PROGRAMDATA%\Docker ~/Library/Preferences/Docker /Library/Preferences/Docker
Data $XDG_DATA_HOME/docker ~/.docker /usr/local/share/docker %LOCALAPPDATA%\Docker %PROGRAMDATA%\Docker ~/Library/Application Support/Docker /Library/Application Support/Docker
Cache $XDG_CACHE_HOME/docker ~/.docker /var/cache/docker %LOCALAPPDATA%\Docker\Cache %PROGRAMDATA%\Docker\Cache ~/Library/Caches/Docker /Library/Caches/Docker
Runtime $XDG_RUNTIME_DIR/docker ~/.docker /run/docker/cli %LOCALAPPDATA%\Docker\Run %PROGRAMDATA%\Docker\Run ? ?

Are these paths sensible, do they crash in any way with the docker daemon?

Any concerns around backward compatibility?

Would love to create a PR.

related: #2738, #2423

主要语言
Go
星标
6.1k
派生
2.2k
平均合并
2 天 2 小时
30 天内合并 PR
28

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

docker/cli 的其他 Issue

查看 docker/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。