MCPcopy Index your code
hub / github.com/docker/docker-agent / SetDataDir

Function SetDataDir

pkg/paths/paths.go:48–48  ·  view source on GitHub ↗

SetDataDir overrides the default data directory returned by [GetDataDir]. An empty value restores the default behaviour.

(dir string)

Source from the content-addressed store, hash-verified

46// SetDataDir overrides the default data directory returned by [GetDataDir].
47// An empty value restores the default behaviour.
48func SetDataDir(dir string) { dataDirOverride.Set(dir) }
49
50// SetRoot re-homes all docker-agent state under one directory: data,
51// config, and cache land in the "data", "config", and "cache"

Calls 1

SetMethod · 0.45