All integrations

Docker

Seal and Docker integration

Description

Seal fixes open source and Linux package vulnerabilities inside the container images you already build. Instead of waiting on a base image refresh or a dependency upgrade, Seal backports the upstream security fix into the exact package version your image uses and delivers it as a signed, drop-in replacement. The sealed package keeps the same major version, so a security fix does not force a rebase, a framework migration or a code change.

How Seal fits into your Docker workflow

Add the Seal CLI as a step in your Dockerfile, and it resolves the packages covered by your Sealing Rules to their sealed versions during the image build, before the layer is committed. This covers application dependencies pulled in during the build (npm, Maven, PyPI, Go and other ecosystems) as well as the Linux OS packages in your base image through Seal OS, which installs sealed APK, DEB or RPM packages in place without rebasing the image.

Sealing Rules can be managed three ways: automatically, where Seal fixes every sealable vulnerability it finds; remotely, where rules are approved once in the Seal Platform and every image build that uses the affected package picks them up on its next run; or locally, in a .seal-actions.yml file committed to the repository. Remote mode is what lets one approved rule reach every Docker image you build from a given base, without editing each Dockerfile by hand.

Because a sealed version keeps the original version number and adds a suffix (for example lodash 4.17.20-sp1, or an extended revision for Alpine packages), the resulting image still reports the same versions your manifest and base image expect. Seal OS also reaches images built on end-of-life distributions such as CentOS, sealing packages in place so legacy services keep running while their CVEs close.

Seal and your image vulnerability scans

Keep whatever scanner you already run against built images, such as Trivy, Wiz or another container scanner, enabled. Seal does not replace it; Seal removes the vulnerability it reports. Once the Seal CLI step has run during the build, the next scan of that image sees the sealed versions instead of the originals and the finding closes. Run the Seal CLI step early in the Dockerfile, before the layers that install your application dependencies, so any scan that follows sees the sealed versions.

Setting up Seal with Docker

  1. Get a Seal API token from the Seal Platform.
  2. Add a build step to your Dockerfile that installs and runs the Seal CLI, placed before the layers that install your application and OS packages.
  3. Decide how Sealing Rules should apply: automatic, remote (managed centrally in the Seal Platform), or local (a .seal-actions.yml file in the repository).
  4. Build the image as usual. The Seal CLI resolves the packages covered by your rules to their sealed versions as part of the build.
  5. Push the built image to your registry. It now ships with sealed packages in place of the vulnerable ones.
  6. Re-run or wait for your next image scan. Your scanner's findings will reflect the sealed versions once it scans the new image.

Frequently asked questions

Does Seal replace my container image scanner?

No. Seal fixes the vulnerabilities your scanner finds inside the image; it does not scan. Keep Trivy, Wiz or whatever scanner you already run enabled, since Seal backports the fix into the version your image already uses.

Do I need to change my Dockerfile beyond adding the Seal CLI step?

No. A sealed version is a drop-in replacement with the same major version and the same API, so adopting Seal is a build step addition, not an application code change.

Which packages can Seal seal inside a Docker image?

Both layers: application dependencies installed during the build, across ecosystems such as npm, Maven, PyPI and Go, and the Linux OS packages in the base image itself through Seal OS.

Will this work with end-of-life base images, like old CentOS or Debian releases?

Yes. Seal OS installs sealed packages in place on the distribution you already run, including end-of-life distributions, as long as the upstream source is public, with no rebase required.

Does sealing an image at build time affect anything at runtime?

No. Seal is a build-time solution. It runs no agents inside your running containers and needs no production access, so there is no runtime performance impact.

Can I get sealed images without adding a Dockerfile step?

Yes. Point your package manager or registry configuration at the Seal Artifact Server, or add it as a remote in JFrog Artifactory or Sonatype Nexus, so every image build resolves sealed versions with no Dockerfile change at all.