github.com/reds/docker@v1.11.2-rc1/pkg/platform/architecture_freebsd.go (about)

     1  package platform
     2  
     3  import (
     4  	"os/exec"
     5  )
     6  
     7  // runtimeArchitecture get the name of the current architecture (x86, x86_64, …)
     8  func runtimeArchitecture() (string, error) {
     9  	cmd := exec.Command("uname", "-m")
    10  	machine, err := cmd.Output()
    11  	if err != nil {
    12  		return "", err
    13  	}
    14  	return string(machine), nil
    15  }