docker/container.go
func (s *Container) Inspect() ([]Inspect, error) {
	out, err := s.docker.Run("inspect", s.id)
	if err != nil {
		return nil, err
	}

	var list []Inspect
	err = json.NewDecoder(strings.NewReader(out)).Decode(&list)
	if err != nil {
		return nil, UnexpectedOutputError(fmt.Sprintf(
			"Error parsing output when inspecting container: %v", err))
	}
	if len(list) == 0 {
		return nil, UnexpectedOutputError(
			"Empty output when inspecting container")
	}

	return list, nil
}
func (s *Container) Inspect() ([]Inspect, error) {
	out, err := s.docker.Run("inspect", s.id)
	if err != nil {
		return nil, err
	}

	var list []Inspect
	err = json.NewDecoder(strings.NewReader(out)).Decode(&list)
	if err != nil {
		return nil, UnexpectedOutputError(fmt.Sprintf(
			"Error parsing output when inspecting container: %v", err))
	}
	if len(list) == 0 {
		return nil, UnexpectedOutputError(
			"Empty output when inspecting container")
	}

	return list, nil
}
// Inspect returns container configuration.