termux-packages/root-packages/docker/config.go.patch
2022-04-18 14:31:48 +05:30

25 lines
819 B
Diff

diff --git a/data/data/com.termux/files/home/test/cli-20.10.1/cli/config/config.go b/cli/cli/config/config.go
index 703fa30..893ff58 100644
--- a/data/data/com.termux/files/home/test/cli-20.10.1/cli/config/config.go
+++ b/cli/cli/config/config.go
@@ -11,7 +11,6 @@ import (
"github.com/docker/cli/cli/config/configfile"
"github.com/docker/cli/cli/config/credentials"
"github.com/docker/cli/cli/config/types"
- "github.com/docker/docker/pkg/homedir"
"github.com/pkg/errors"
)
@@ -32,10 +31,7 @@ func setConfigDir() {
if configDir != "" {
return
}
- configDir = os.Getenv("DOCKER_CONFIG")
- if configDir == "" {
- configDir = filepath.Join(homedir.Get(), configFileDir)
- }
+ configDir = "/data/data/com.termux/files/home/.docker"
}
// Dir returns the directory the configuration file is stored in