File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ ///
1
2
// Copyright © 2024 Kaleido, Inc.
2
3
//
3
4
// SPDX-License-Identifier: Apache-2.0
@@ -23,6 +24,7 @@ import (
23
24
24
25
"github.com/spf13/cobra"
25
26
27
+ "github.com/hyperledger/firefly-cli/internal/docker"
26
28
"github.com/hyperledger/firefly-cli/internal/log"
27
29
"github.com/hyperledger/firefly-cli/internal/stacks"
28
30
"github.com/hyperledger/firefly-cli/pkg/types"
@@ -36,6 +38,13 @@ var initFabricCmd = &cobra.Command{
36
38
RunE : func (cmd * cobra.Command , args []string ) error {
37
39
ctx := log .WithVerbosity (context .Background (), verbose )
38
40
ctx = log .WithLogger (ctx , logger )
41
+
42
+ version , err := docker .CheckDockerConfig ()
43
+ if err != nil {
44
+ return err
45
+ }
46
+ ctx = context .WithValue (ctx , docker.CtxComposeVersionKey {}, version )
47
+
39
48
stackManager := stacks .NewStackManager (ctx )
40
49
initOptions .BlockchainProvider = types .BlockchainProviderFabric .String ()
41
50
initOptions .TokenProviders = []string {}
You can’t perform that action at this time.
0 commit comments