Rajesh Chaudhary
Rajesh Chaudhary

Reputation: 1204

How to add dockerfile to https://hub.docker.com?

After the successful pushing of a docker image, I can see some repo has "Dockerfile" section while some have not.

dockerfile

How to add "Dockerfile" to own repo?

Upvotes: 1

Views: 257

Answers (1)

jkr
jkr

Reputation: 19260

To do this, you need to set up an automated build of a code repository. See the documentation to learn how to set up automated builds.

The basic steps are:

  1. Link a code repository (e.g., GitHub repository) to DockerHub
  2. DockerHub will build a Docker image for that repository using the Dockerfile in the repository. You can configure the location of this file and the image tags.
  3. Once this is set up and your first image is built, you should see the Dockerfile listed on DockerHub.

Upvotes: 2

Related Questions