code: func RunDeploy(dockerCli command.Cli, opts options.Deploy, cfg *composetypes.Config) error {
  	ctx := context.Background()
  
  	if err := validateResolveImageFlag(dockerCli, &opts); err != nil {
  		return err
  	}
  
  	return deployCompose(ctx, dockerCli, opts, cfg)
  }
docs: // RunDeploy is the swarm implementation of docker stack deploy