Fix `docker-app deploy` error with ResolveImage
@@ -8,6 +8,7 @@ import (
"github.com/docker/cli/cli/command"
"github.com/docker/cli/cli/command/stack"
"github.com/docker/cli/cli/command/stack/options"
+ "github.com/docker/cli/cli/command/stack/swarm"
cliopts "github.com/docker/cli/opts"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
@@ -70,5 +71,6 @@ func runDeploy(dockerCli command.Cli, flags *pflag.FlagSet, appname string, opts
}
return stack.RunDeploy(dockerCli, flags, rendered, deployOrchestrator, options.Deploy{
Namespace: stackName,
+ ResolveImage: swarm.ResolveImageAlways,
})
}
