Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用过程中的一些改进建议 #2

Closed
fcwys opened this issue Mar 12, 2025 · 2 comments
Closed

使用过程中的一些改进建议 #2

fcwys opened this issue Mar 12, 2025 · 2 comments

Comments

@fcwys
Copy link

fcwys commented Mar 12, 2025

经过几天的试用,非常喜欢这个工具,同时感谢作者能开源这么好的工具,以下为使用过程中希望能更完善的地方,希望能让这个工具更完善。

1. 希望支持在config.json内配置docker镜像地址(或私有地址),由于众所周知的原因国内下载镜像不太友好,支持配置镜像地址会更方便使用。

建议配置文件结构如下(mirrors支持配置多个镜像地址):

{
    "registry": {
        "mirrors": [
            "https://registry.docker-cn.com",
            "https://docker.mirrors.ustc.edu.cn",
            "http://hub-mirror.c.163.com"
        ]
        "username": "your-username",
        "password": "your-password"
    }
}

2. 建议增加一个参数用于生成初始配置文件模板,如 dipt -conf new 生成配置模板和 dipt -conf 自定义配置文件路径

3. 希望支持查看已下载tar镜像信息,如镜像名称、版本、系统、架构等信息。

4. 镜像下载建议显示镜像大小(不指定版本时默认显示latest,文件名同理),附图是我在上一版尝试的样式(仅供参考):

镜像拉取输出:

Image

不加任何参数输出(因docker hub下载困难增加了终端使用代理的说明):

Image

附件是修改后代码,因golang不熟没有以pr方式提交,希望能提供一些参考:dipt.zip

@iwen-conf
Copy link
Owner

非常感谢你对本项目的关注并提出宝贵的修改建议,看了你的代码我觉得很有帮助,我会多一点时间思考,如何实现最佳实践来添加这个功能,谢谢你的提议和代码附件。

@iwen-conf
Copy link
Owner

已经更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants