podman

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Podman

type Podman struct {
	// contains filtered or unexported fields
}

func New

func New(out string) (*Podman, error)

New setups a podman listening service and returns a connected podman client.

Parameters:

  • out - location for podman to output any logs created as a result of podman commands

func (*Podman) Build

func (p *Podman) Build(imageContext, imageName string) error

Build looks for a 'Dockerfile' in the given context and build a podman image from it.

func (*Podman) Copy

func (p *Podman) Copy(id, src, dest string) error

Copy copies a file or directory from a source located in the container to a destination located outside of the container.

Note: No need to create a placeholder file/directory in dest. The file/directory will be created automatically upon copying from source.

func (*Podman) Create

func (p *Podman) Create(img string) (string, error)

Create creates a container from the given image. Returns the id of the container.

func (*Podman) Import

func (p *Podman) Import(tarball, ref string) error

Import imports a tarball and saves it as a filesystem image

Parameters:

  • tarball - path to the tarball to be imported
  • ref - name for the image that will be created from the tarball

Jump to

Keyboard shortcuts

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