page_title: Trusted Builds in the Docker Index page_description: Docker Index Trusted Builds page_keywords: Docker, docker, index, accounts, plans, Dockerfile, Docker.io, docs, documentation, trusted, builds, trusted builds # Trusted Builds in the Docker Index ## Trusted Builds *Trusted Builds* is a special feature allowing you to specify a source repository with a *Dockerfile* to be built by the Docker build clusters. The system will clone your repository and build the Dockerfile using the repository as the context. The resulting image will then be uploaded to the index and marked as a `Trusted Build`. Trusted Builds have a number of advantages. For example, users of *your* Trusted Build can be certain that the resulting image was built exactly how it claims to be. Furthermore, the Dockerfile will be available to anyone browsing your repository on the Index. Another advantage of the Trusted Builds feature is the automated builds. This makes sure that your repository is always up to date. ### Linking with a GitHub account In order to setup a Trusted Build, you need to first link your Docker Index account with a GitHub one. This will allow the Docker Index to see your repositories. > *Note:* We currently request access for *read* and *write* since the Index > needs to setup a GitHub service hook. Although nothing else is done with > your account, this is how GitHub manages permissions, sorry! ### Creating a Trusted Build You can [create a Trusted Build](https://index.docker.io/builds/github/select/) from any of your public GitHub repositories with a Dockerfile. > **Note:** We currently only support public repositories. To have more than > one Docker image from the same GitHub repository, you will need to set up one > Trusted Build per Dockerfile, each using a different image name. This rule > applies to building multiple branches on the same GitHub repository as well. ### GitHub organizations GitHub organizations appear once your membership to that organization is made public on GitHub. To verify, you can look at the members tab for your organization on GitHub. ### GitHub service hooks You can follow the below steps to configure the GitHub service hooks for your Trusted Build:
Step | Screenshot | Description |
---|---|---|
1. | Login to Github.com, and visit your Repository page. Click on the repository "Settings" link. You will need admin rights to the repository in order to do this. So if you don't have admin rights, you will need to ask someone who does. | |
2. | Click on the "Service Hooks" link | |
3. | Find the service hook labeled "Docker" and click on it. | |
4. | Click on the "Active" checkbox and then the "Update settings" button, to save changes. |