SetDataDir overrides the default data directory returned by [GetDataDir]. An empty value restores the default behaviour.
(dir string)
| 46 | // SetDataDir overrides the default data directory returned by [GetDataDir]. |
| 47 | // An empty value restores the default behaviour. |
| 48 | func 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" |