OS Manuals

/usr/bin/dfc

Convert Dockerfiles to use Chainguard

From dfc 0.10.0-r18 (os), captured 2026-11-05 by running dfc --help (exit 0). permalink

Usage:
  dfc [flags]

Examples:
dfc <path_to_dockerfile>

Flags:
  -h, --help                    help for dfc
  -i, --in-place                modified the Dockerfile in place (vs. stdout), saving original in a .bak file
  -j, --json                    print dockerfile as json (before conversion)
      --log-level string        log level (e.g. debug, info, warn, error) (default "INFO")
  -m, --mappings string         path to a custom package mappings YAML file (instead of the default)
      --no-builtin              skip built-in package/image mappings, still apply default conversion logic
      --org string              the organization for cgr.dev/<org>/<image> (defaults to ORG) (default "ORG")
      --registry string         an alternate registry and root namepace (e.g. r.example.com/cg-mirror)
      --strict                  when true, fail if any package is unknown
      --update                  check for and apply available updates
  -v, --version                 version for dfc
      --warn-missing-packages   when true, warn about missing package mappings
Options (12)
OptionDescriptionSource
-h, --helphelp for dfchelp
-i, --in-placemodified the Dockerfile in place (vs.help
-j, --jsonprint dockerfile as json (before conversion)help
--log-level stringlog level (e.g. debug, info, warn, error) (default "INFO")help
-m, --mappings stringpath to a custom package mappings YAML file (instead of the default)help
--no-builtinskip built-in package/image mappings, still apply default conversion logichelp
--org stringthe organization for cgr.dev/<org>/<image> (defaults to ORG) (default "ORG")help
--registry stringan alternate registry and root namepace (e.g. r.example.com/cg-mirror)help
--strictwhen true, fail if any package is unknownhelp
--updatecheck for and apply available updateshelp
-v, --versionversion for dfchelp
--warn-missing-packageswhen true, warn about missing package mappingshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.