Documentation
¶
Overview ¶
Package exec is the DockerClient that runs the docker binary through a CommandRunner.
Index ¶
- type Client
- func (c *Client) Build(ctx context.Context, spec types.BuildSpec) error
- func (c *Client) ComposeDown(ctx context.Context, spec types.ComposeSpec) error
- func (c *Client) ComposeUp(ctx context.Context, spec types.ComposeSpec) error
- func (c *Client) Inspect(ctx context.Context, ref string) ([]byte, error)
- func (c *Client) Push(ctx context.Context, ref string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client runs docker in a working directory.
func New ¶
func New(runner interfaces.CommandRunner, root string) *Client
New returns the Client running docker in root. It does no I/O.
func (*Client) Build ¶
Build runs `docker buildx build --load` without provenance or SBOM attestations, so the image loads into the local daemon.
func (*Client) ComposeDown ¶
ComposeDown runs `docker compose … down [--volumes]`.
Click to show internal directories.
Click to hide internal directories.