func (r *Runc) List(context context.Context) ([]*Container, error) {
	data, err := cmdOutput(r.command(context, "list", "--format=json"), false, nil)
	defer putBuf(data)
	if err != nil {
		return nil, err
	}
	var out []*Container
	if err := json.Unmarshal(data.Bytes(), &out); err != nil {
		return nil, err
	}
	return out, nil
}
List returns all containers created inside the provided runc root directory
package runc
import (
	"bytes"
	"context"
	"encoding/json"
	"errors"
	"fmt"
	"io"
	"io/ioutil"
	"os"
	"os/exec"
	"path/filepath"
	"strconv"
	"strings"
	"time"
	specs "github.com/opencontainers/runtime-spec/specs-go"
)
type Format string
type TopResults struct {
	Processes [][]string `json:"Processes"`
	Headers []string `json:"Headers"`
}
const (
	none Format = ""
	JSON Format = "json"
	Text Format = "text"
	DefaultCommand = "runc"
)