code: func (daemon *Daemon) CheckpointList(name string, config types.CheckpointListOptions) ([]types.Checkpoint, error) {
  	var out []types.Checkpoint
  
  	container, err := daemon.GetContainer(name)
  	if err != nil {
  		return nil, err
  	}
  
  	checkpointDir, err := getCheckpointDir(config.CheckpointDir, "", name, container.ID, container.CheckpointDir(), false)
  	if err != nil {
  		return nil, err
  	}
  
  	if err := os.MkdirAll(checkpointDir, 0755); err != nil {
  		return nil, err
  	}
  
  	dirs, err := ioutil.ReadDir(checkpointDir)
  	if err != nil {
  		return nil, err
  	}
  
  	for _, d := range dirs {
  		if !d.IsDir() {
  			continue
  		}
  		cpt := types.Checkpoint{Name: d.Name()}
  		out = append(out, cpt)
  	}
  
  	return out, nil
  }
docs: // CheckpointList lists all checkpoints of the specified container