Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 5f956de

Browse files
authored
Merge pull request #2127 from rumpl/fix-remove-context-call
Remove the call to com.docker.cli to get the default context
2 parents b46ffa7 + bdc9d81 commit 5f956de

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

api/context/store/store.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ func New(rootDir string) (Store, error) {
123123

124124
// Get returns the context with the given name
125125
func (s *store) Get(name string) (*DockerContext, error) {
126-
if name == "default" {
127-
return dockerDefaultContext()
128-
}
129126
meta := filepath.Join(s.root, contextsDir, metadataDir, contextDirOf(name), metaFile)
130127
m, err := read(meta)
131128
if os.IsNotExist(err) {

0 commit comments

Comments
 (0)