Help us shape the future of Go! Take the 2026 Go Developer Survey

docker

package
v0.81.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallECRCredentialsHelper added in v0.79.0

func InstallECRCredentialsHelper(n namer.Namer, host *remoteComp.Host, opts ...pulumi.ResourceOption) (command.Command, error)

InstallECRCredentialsHelper installs the Amazon ECR credential helper and jq on the host, then merges credsStore=ecr-login into ~/.docker/config.json (preserving existing keys). This enables automatic authentication against ECR registries (including pull-through caches).

Types

type ComposeInlineManifest

type ComposeInlineManifest struct {
	Name    string
	Content pulumi.StringInput
}

type ComposeManifest

type ComposeManifest struct {
	Version  string                            `yaml:"version"`
	Services map[string]ComposeManifestService `yaml:"services"`
}

type ComposeManifestService

type ComposeManifestService struct {
	Pid           string         `yaml:"pid,omitempty"`
	Privileged    bool           `yaml:"privileged,omitempty"`
	Ports         []string       `yaml:"ports,omitempty"`
	Image         string         `yaml:"image"`
	ContainerName string         `yaml:"container_name"`
	Volumes       []string       `yaml:"volumes"`
	Environment   map[string]any `yaml:"environment"`
}

type Manager

type Manager struct {
	pulumi.ResourceState
	components.Component

	Host *remoteComp.Host `pulumi:"host"`
	// contains filtered or unexported fields
}

func NewAWSManager added in v0.79.0

func NewAWSManager(e config.Env, host *remoteComp.Host, opts ...pulumi.ResourceOption) (*Manager, error)

NewAWSManager creates a docker Manager with the Amazon ECR credentials helper pre-installed. The ECR credentials helper enables automatic authentication against ECR registries, including our pull-through cache. Use this instead of NewManager when the host is on AWS.

When ImagePullRegistry is configured, DD_REGISTRY is automatically injected into every ComposeStrUp call so that compose files using ${DD_REGISTRY:-docker.io} pull from the ECR pull-through cache for Docker Hub images. Callers may still override DD_REGISTRY by passing it explicitly in their envVars map.

func NewManager

func NewManager(e config.Env, host *remoteComp.Host, opts ...pulumi.ResourceOption) (*Manager, error)

func (*Manager) ComposeFileUp

func (d *Manager) ComposeFileUp(composeFilePath string, opts ...pulumi.ResourceOption) (command.Command, error)

func (*Manager) ComposeStrUp

func (d *Manager) ComposeStrUp(name string, composeManifests []ComposeInlineManifest, envVars pulumi.StringMap, opts ...pulumi.ResourceOption) (command.Command, error)

func (*Manager) Export

func (d *Manager) Export(ctx *pulumi.Context, out *ManagerOutput) error

type ManagerOutput

type ManagerOutput struct {
	components.JSONImporter

	Host remoteComp.HostOutput `json:"host"`
}

Jump to

Keyboard shortcuts

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