File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1+ ///
12// Copyright © 2024 Kaleido, Inc.
23//
34// SPDX-License-Identifier: Apache-2.0
@@ -23,6 +24,7 @@ import (
2324
2425 "github.com/spf13/cobra"
2526
27+ "github.com/hyperledger/firefly-cli/internal/docker"
2628 "github.com/hyperledger/firefly-cli/internal/log"
2729 "github.com/hyperledger/firefly-cli/internal/stacks"
2830 "github.com/hyperledger/firefly-cli/pkg/types"
@@ -36,6 +38,13 @@ var initFabricCmd = &cobra.Command{
3638 RunE : func (cmd * cobra.Command , args []string ) error {
3739 ctx := log .WithVerbosity (context .Background (), verbose )
3840 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+
3948 stackManager := stacks .NewStackManager (ctx )
4049 initOptions .BlockchainProvider = types .BlockchainProviderFabric .String ()
4150 initOptions .TokenProviders = []string {}
You can’t perform that action at this time.
0 commit comments