如何使用README文件将docker图像推送到docker hub? [英] How to push a docker image with README file to docker hub?

查看:252
本文介绍了如何使用README文件将docker图像推送到docker hub?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将泊坞台的形象推到码头中心的私人回收站。不过,我确实看到Docker Hub有一个信息部分,我想通过有关我的图像的有用信息进行更新。我想知道如果我可以推一个README.md文件,Docker Hub可以解析这个文件,并用这个更新信息部分。我不知道我是否应该将README.md嵌入到我的图像中以使其工作?

I am trying to push a docker image to my private repo on docker hub. However, I do see that there is an "Information" section on the Docker Hub which I want to update with useful information about my image. I am wondering if I can push a README.md file and Docker Hub can parse this file and update the "Information" section with this. I am not sure if I should embed the README.md in my image for this to work?

推荐答案

Docker Hub将尝试解析你的 Readme.md 如果你正在做一个自动构建。对于手动构建(您推荐自己的图像),Docker Hub不会窥视您的图像,无法知道您的自述文件。您需要手动将自述文本添加到信息部分

Docker Hub will try to parse your Readme.md iff you're doing an "Automated Build." For manual builds (where you push your own image), Docker Hub does not peek inside your image and has no way to know about your Readme. You'll need to manually add your Readme text to the Information section

这篇关于如何使用README文件将docker图像推送到docker hub?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆