Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
134 views
in Technique[技术] by (71.8m points)

How to add Dockerfile to a docker registry page?

I successfully built a docker image starting from a different image and using a Dockerfile. I then did a docker push into my account in the docker registry, but I can't see the Dockerfile that I used in the registry page.

How do I add the Dockerfile I used to create the image into the registry page?

question from:https://stackoverflow.com/questions/27679740/how-to-add-dockerfile-to-a-docker-registry-page

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You'll need to do an automated build of your Docker image. Basically, you'll add the Dockerfile (and any related context) to a repo (GitHub, BitBucket, or your own), and Docker will build the image anytime it gets a webhook.

From the docs:

Automated Builds have several advantages:

  • Users of your Automated Build can trust that the resulting image was built exactly as specified.

  • The Dockerfile will be available to anyone with access to your repository on the Docker Hub registry.

  • Because the process is automated, Automated Builds help to make sure that your repository is always up to date.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...