Documentation
¶
Overview ¶
Package compose runs docker compose as a subprocess (readme §4.4).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HintIfComposePluginError ¶
HintIfComposePluginError appends install hint when a failed docker compose run looks like a missing plugin.
func LookPathDocker ¶
func LookPathDocker() error
LookPathDocker returns an error if docker is not found in PATH.
func RequireComposeV2Plugin ¶
func RequireComposeV2Plugin() error
RequireComposeV2Plugin checks that `docker compose` (Compose V2 CLI plugin) is available. dq does not fall back to standalone `docker-compose` (V1); users should install the plugin.
Types ¶
type Runner ¶
type Runner struct {
ProjectRoot string
ComposeFile string
ComposeProjectName string
DockerBin string // default "docker"
}
Runner executes docker compose in projectRoot with project and file flags.
Click to show internal directories.
Click to hide internal directories.