Find Docker base images

Apache 2.0

Find all base images (FROM instructions) in Dockerfiles.

org.openrewrite.docker.search.FindBaseImages

Optional

A glob pattern to match against base image names. If not specified, all base images are matched.

A glob pattern to match against image tags. If not specified, all tags are matched.

A glob pattern to match against image digests. If not specified, all digests are matched.

A glob pattern to match against platform flags. If not specified, all platforms are matched.

mod run . --recipe=org.openrewrite.docker.search.FindBaseImages

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.