code: func (c *container) buildImage(nocache bool) {
  	executeHook(c.Hooks().PreBuild(), c.ActualName(false))
  	fmt.Fprintf(c.CommandsOut(), "Building image %s ...\n", c.Image())
  	args := []string{"build"}
  	if nocache {
  		args = append(args, "--no-cache")
  	}
  	args = append(args, "--rm", "--tag="+c.Image())
  	if len(c.BuildParams().File()) > 0 {
  		args = append(args, "--file="+filepath.FromSlash(c.BuildParams().Context()+"/"+c.BuildParams().File()))
  	}
  	for _, arg := range c.BuildParams().BuildArgs() {
  		args = append(args, "--build-arg", arg)
  	}
  
  	args = append(args, c.BuildParams().Context())
  	executeCommand("docker", args, c.CommandsOut(), c.CommandsErr())
  	executeHook(c.Hooks().PostBuild(), c.ActualName(false))
  }
docs: // Build image for container