Run only the images you trustEstimated reading time: 2 minutes
This topic applies to Docker Enterprise.
The Docker Enterprise platform business, including products, customers, and employees, has been acquired by Mirantis, inc., effective 13-November-2019. For more information on the acquisition and how it may affect you and your business, refer to the Docker Enterprise Customer FAQ.
With Docker Universal Control Plane (UCP), you can enforce applications to only use Docker images signed by UCP users you trust. Each time a user attempts to deploy an application to the cluster, UCP checks whether the application is using a trusted Docker image (and will halt the deployment if that is not the case).
By signing and verifying Docker images, you ensure that:
- The images used in your cluster are ones that you trust.
- The images have not been altered either in the image registry or on their way from the image registry to your UCP cluster.
- A developer makes changes to a service and pushes the changes to a version control system.
- A continuous integration (CI) system creates a build, runs tests, and pushes an image to Docker Trusted Registry (DTR) with the new changes.
- The quality engineering team pulls the image and runs more tests. If the tests are successful, the team signs and then pushes the image.
- The IT operations team deploys a service. If the image used for the service was signed by the QA team, UCP deploys it. Otherwise, UCP refuses to deploy the image.
To configure UCP to only allow running services that use Docker trusted images:
- Access the UCP UI and browse to the Admin Settings page.
- In the left navigation pane, click Docker Content Trust.
Select the Run only signed images option.
With this setting, UCP allows deploying any image as long as the image has been signed.
To enforce the requirement that the image be signed by specific teams, click Add Team and select the pertinent teams from the list.
If you specify multiple teams, the image needs to be signed by a member of each team, or by someone that is a member of all of those teams.
At this point, UCP starts enforcing the policy. Existing services will continue running and can be restarted if needed, however UCP only allows the deployment of new services that use a trusted image.