MCPcopy
hub / github.com/docker/compose / CurrentContext

Method CurrentContext

pkg/api/context.go:23–23  ·  view source on GitHub ↗

CurrentContext returns the name of the current Docker context Returns "default" for simple clients without context support

()

Source from the content-addressed store, hash-verified

21 // CurrentContext returns the name of the current Docker context
22 // Returns "default" for simple clients without context support
23 CurrentContext() string
24
25 // ServerOSType returns the Docker daemon's operating system (linux/windows/darwin)
26 // Used for OS-specific compatibility checks

Callers 5

WithDryRunFunction · 0.65
CurrentContextMethod · 0.65
InitProviderFunction · 0.65

Implementers 1

dockerCliContextInfopkg/compose/docker_cli_providers.go

Calls

no outgoing calls

Tested by

no test coverage detected