docker

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Docker package provides common docker commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compose

type Compose mg.Namespace

Compose namespace contains all the tasks for Docker compose commands.

func (Compose) Build

func (Compose) Build() error

⬆ Build runs docker compose stack build. //noinspection.

type Devcontainer

type Devcontainer mg.Namespace

Devcontainer namespace contains all the tasks for Dev container commands.

func (Devcontainer) Build

func (Devcontainer) Build() error

🔨 Build devcontainer.

type Docker

type Docker mg.Namespace

Docker namespace contains all the tasks for Docker commands.

func (Docker) Build

func (Docker) Build(dockerfile, imagename, tag string) error

Build runs docker build command against the provided dockerfile.

func (Docker) Prune

func (Docker) Prune(maintainer string) error

🧹 DockerPrune cleans up images.

parameter: dockerMaintainer is the label used to filter to images maintained by this maintainer (ok for small teams).

This is useful to narrow the pruning to just the images being build by the designated maintainer over `n` hours old.

Jump to

Keyboard shortcuts

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