image

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "image",
	Usage: "docker/oci image tools",

	HideHelpCommand: true,

	Category: utility.Category,

	Commands: []*cli.Command{
		toolCommand("lint", "lint Dockerfile using dockle", func(image string) engine.Container {
			return engine.Container{
				Image: "goodwithtech/dockle:v0.4.15",

				Env: map[string]string{
					"DOCKER_CONTENT_TRUST": "1",
				},

				Args:   []string{image},
				Mounts: []engine.ContainerMount{dockerSocket},
			}
		}),

		toolCommand("scan", "scan image vulnerabilities using trivy", func(image string) engine.Container {
			return engine.Container{
				Image: "aquasec/trivy:0.59.0",

				Args: []string{"--quiet", "image", image},

				Mounts: []engine.ContainerMount{
					{Path: "/root/.cache/", Volume: "trivy-cache"},
				},
			}
		}),

		toolCommand("inspect", "inspect image using whaler", func(image string) engine.Container {
			return engine.Container{
				Image:    "pegleg/whaler",
				Platform: "linux/amd64",

				Args:   []string{image},
				Mounts: []engine.ContainerMount{dockerSocket},
			}
		}),

		toolCommand("bom", "show image bill of material using syft", func(image string) engine.Container {
			return engine.Container{
				Image: "anchore/syft",

				Args:   []string{"-o", "syft-table", image},
				Mounts: []engine.ContainerMount{dockerSocket},
			}
		}),

		toolCommand("browse", "browse image using dive (interactive)", func(image string) engine.Container {
			return engine.Container{
				Image:    "wagoodman/dive:v0.12",
				Platform: "linux/amd64",

				Args:   []string{image},
				Mounts: []engine.ContainerMount{dockerSocket},
			}
		}),
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL