container

package
v1.2.23 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

Container is a Docker container running Docker registry inside

func Launch

func Launch() (*Container, error)

Launch launches a Docker container with Docker registry inside

func (*Container) Destroy

func (c *Container) Destroy() error

Destroy force-stops and destroys Docker container with registry

func (*Container) Hostname

func (c *Container) Hostname() string

Hostname gets hostname to access Docker registry we run inside our container

func (*Container) ID

func (c *Container) ID() string

ID gets container ID

func (*Container) SeedWithImages

func (c *Container) SeedWithImages(refs ...string) ([]string, error)

SeedWithImages pulls specified images from whatever registry and then re-pushes em to our [local] container-based registry

Jump to

Keyboard shortcuts

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