code: func (ds *dockerService) RemoveContainer(_ context.Context, r *runtimeapi.RemoveContainerRequest) (*runtimeapi.RemoveContainerResponse, error) {
  	ds.performPlatformSpecificContainerForContainer(r.ContainerId)
  
  	// Ideally, log lifecycle should be independent of container lifecycle.
  	// However, docker will remove container log after container is removed,
  	// we can't prevent that now, so we also clean up the symlink here.
  	err := ds.removeContainerLogSymlink(r.ContainerId)
  	if err != nil {
  		return nil, err
  	}
  	err = ds.client.RemoveContainer(r.ContainerId, dockertypes.ContainerRemoveOptions{RemoveVolumes: true, Force: true})
  	if err != nil {
  		return nil, fmt.Errorf("failed to remove container %q: %v", r.ContainerId, err)
  	}
  	return &runtimeapi.RemoveContainerResponse{}, nil
  }
docs: // RemoveContainer removes the container.