Serdar Yegulalp
Senior Writer

Docker Content Trust steps up container security

news
Aug 12, 20153 mins

Docker Content Trust seeks to provide a standard security framework for Docker images, via open source key-sharing

handing over keys
Credit: Thinkstock

As Docker has matured, it’s grappled with the security issues that come with containers. Of late, Docker has concentrated on how to certify the contents of a given container.

Its latest push in this area, Docker Content Trust, provides a way for users of containerized apps to ensure that the container’s publisher and content are who they say they are. Content Trust also makes this verification a standard mechanism, at least when Docker’s content-delivery infrastructure (such as Docker Hub) is concerned.

Docker Content Trust works by making sure containers are signed by their creators before they’re publicly available, with the signatures verifiable by users. Two keys are used in the process: a per-repository key, for signing Docker images (available online), and a root key to create new per-repository keys (kept offline).

With this two-key mechanism, it’s more difficult to forge signatures since an attacker would need access to both keys to pull off the feat. If a per-repository key were to be stolen, the publisher would be able to generate a new one with the root key.

This key-signing system is built using an existing Docker project, Notary. Close integration with the Docker Engine means common actions for containers can be constrained only to use signed content. (Docker 1.8, the latest release, includes these features, though they’re disabled by default.)

Docker Content Trust Docker

Docker Content Trust provides a key-signing mechanism for Docker containers that’s designed to be resistant to forgery or key compromise. Its use is currently opt-in.

Docker security lead Diogo Monica explained in a phone call that Docker’s main rationale for doing this is to “raise the bar for trusted delivery of content” and to “have a base layer of security for trusted content that is open source and audited by the community, and enables everyone else to build on top of the Docker platform.”

These first steps with Content Trust involve leading by example; it’s positioned as the standard for delivering trusted content through Docker’s official repositories — but as an opt-in mechanism at first. if you’re deploying via a private repository, you can also use Docker Content Trust to sign content, though without dependencies on external sources of trust.

In the past, the company heralded its “batteries included, but optional” approach to its product design. While recommended practices are available in Docker by default, it’s not the only path.

But with security — especially a security process, rather than a pluggable behavior — Docker may not have a choice but to be opinionated. That said, the company claims to have received deeply positive feedback from its community over Content Trust.

Serdar Yegulalp

Serdar Yegulalp is a senior writer at InfoWorld. A veteran technology journalist, Serdar has been writing about computers, operating systems, databases, programming, and other information technology topics for 30 years. Before joining InfoWorld in 2013, Serdar wrote for Windows Magazine, InformationWeek, Byte, and a slew of other publications. At InfoWorld, Serdar has covered software development, devops, containerization, machine learning, and artificial intelligence, winning several B2B journalism awards including a 2024 Neal Award and a 2025 Azbee Award for best instructional content and best how-to article, respectively. He currently focuses on software development tools and technologies and major programming languages including Python, Rust, Go, Zig, and Wasm. Tune into his weekly Dev with Serdar videos for programming tips and techniques and close looks at programming libraries and tools.

More from this author