docker

package
v0.0.0-...-380f8d5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Out            = sh.OutCmd("docker")
	CraneDigestOut = sh.OutCmd("crane", "digest")
)

Functions

func Build

func Build(moduleDir, tag string) error

func BuildCmd

func BuildCmd(moduleDir, tag string) magelib.Cmd

Build as magelib.Cmd

func BuildWithArgs

func BuildWithArgs(moduleDir, tag string, args magelib.ArgsMap) error

func BuildWithArgsCmd

func BuildWithArgsCmd(moduleDir, tag string, args magelib.ArgsMap) magelib.Cmd

BuildWithArgs as magelib.Cmd

func BuildWithFile

func BuildWithFile(moduleDir, dockerfilePath, tag string) error

func BuildWithFileCmd

func BuildWithFileCmd(moduleDir, dockerfilePath, tag string) magelib.Cmd

BuildWithFile as magelib.Cmd

func ContainerNameByLabel

func ContainerNameByLabel(label string) (string, error)

func ImageDigestLocal

func ImageDigestLocal(tag string) (string, error)

func ImageDigestRemote

func ImageDigestRemote(tag string) (string, error)

func IsImageAvailable

func IsImageAvailable(imageName string) bool

func Push

func Push(tag string) error

func PushOnDemand

func PushOnDemand(tag string) error

func RemoveLocalImage

func RemoveLocalImage(imageName string) error

func RemoveLocalImageCmd

func RemoveLocalImageCmd(imageName string) magelib.Cmd

RemoveLocalImage as magelib.Cmd

func RemoveUntaggedImages

func RemoveUntaggedImages() error

func RemoveUntaggedImagesCmd

func RemoveUntaggedImagesCmd() magelib.Cmd

RemoveUntaggedImages as magelib.Cmd

Types

This section is empty.

Jump to

Keyboard shortcuts

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