

# You can change the default files shown in the filetree (right pane). # Global bindings quit: ctrl+c toggle-view: tab filter-files: ctrl+f, ctrl+slash # Layer view specific bindings compare-all: ctrl+a compare-layer: ctrl+l # File view specific bindings toggle-collapse-dir: space toggle-collapse-all-dir: ctrl+space toggle-added-files: ctrl+a toggle-removed-files: ctrl+r toggle-modified-files: ctrl+m toggle-unmodified-files: ctrl+u toggle-filetree-attributes: ctrl+b page-up: pgup page-down: pgdn diff: # Note: UI hinting is derived from the first binding keybinding: dive.log level: info # Note: you can specify multiple bindings by separating values with a comma. # supported options are "docker" and "podman" container-engine: docker # continue with analysis even if there are errors parsing the image archive ignore-errors: false log:Įnabled: true path. No configuration is necessary, however, you can create a config file and override values: Layer view: see current layer modificationsįiletree view: collapse/uncollapse a directoryįiletree view: collapse/uncollapse all directoriesįiletree view: show/hide unmodified files Layer view: see aggregated image modifications Switch between the layer and filetree views You can override the CI config path with the -ci-config option. # Expressed as a ratio between 0-1 fails if the threshold is met or crossed. # Note: the base image layer is NOT included in the total image size. # If the amount of wasted space makes up for X% or more of the image, mark as failed. # If the amount of wasted space is at least X or larger than X, mark as failed. # If the efficiency is measured below X%, mark as failed. With the -source option, you can select where to fetch the container image from: Multiple Image Sources and Container Engines Supported Simply set CI=true in the environment when invoking any valid dive command. You only need to replace your docker build command with the same dive buildĪnalyze an image and get a pass/fail result based on the image efficiency and wasted space. You can build a Docker image and do an immediate analysis with one command: Both a percentage "score" and total wasted file space is provided. This might be from duplicating files across layers, moving files across layers, or not fully removing files. The lower left pane shows basic layer info and an experimental metric that will guess how much wasted space your image contains. This can be adjusted to show changes for a specific layer, or aggregated changes up to this layer. Also, you can fully explore the file tree with the arrow keys.įiles that have changed, been modified, added, or removed are indicated in the file tree. Show Docker image contents broken down by layerĪs you select a layer on the left, you are shown the contents of that layer combined with all previous layers on the right. This is beta quality! Feel free to submit an issue if you want a new feature or find a bug :) Basic Features
