code: func dispatchCmd(d dispatchRequest, c *instructions.CmdCommand) error {
  	runConfig := d.state.runConfig
  	cmd, argsEscaped := resolveCmdLine(c.ShellDependantCmdLine, runConfig, d.state.operatingSystem, c.Name(), c.String())
  
  	// We warn here as Windows shell processing operates differently to Linux.
  	// Linux:   /bin/sh -c "echo hello" world	--> hello
  	// Windows: cmd /s /c "echo hello" world	--> hello world
  	if d.state.operatingSystem == "windows" &&
  		len(runConfig.Entrypoint) > 0 &&
  		d.state.runConfig.ArgsEscaped != argsEscaped {
  		fmt.Fprintf(d.builder.Stderr, " ---> [Warning] Shell-form ENTRYPOINT and exec-form CMD may have unexpected results\n")
  	}
  
  	runConfig.Cmd = cmd
  	runConfig.ArgsEscaped = argsEscaped
  
  	if err := d.builder.commit(d.state, fmt.Sprintf("CMD %q", cmd)); err != nil {
  		return err
  	}
  	if len(c.ShellDependantCmdLine.CmdLine) != 0 {
  		d.state.cmdSet = true
  	}
  
  	return nil
  }
docs: // CMD foo
  //
  // Set the default command to run in the container (which may be empty).
  // Argument handling is the same as RUN.
  //