Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Dockerfile to a docker registry page?

Tags:

docker

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?

like image 621
719016 Avatar asked Dec 28 '14 19:12

719016


People also ask

Can we have docker image for docker registry?

Docker Hub is the premier Image Repository with thousands of Official Images ready for use. It's also just as easy to push your own images to the Docker Hub registry so that everyone can benefit from your Dockerized applications. But in certain scenarios, you might not want to push your images outside of your firewall.


1 Answers

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.

like image 71
Alex Avatar answered Nov 08 '22 03:11

Alex