github.com/portworx/docker@v1.12.1/oci/defaults_windows.go (about)

     1  package oci
     2  
     3  import (
     4  	"runtime"
     5  
     6  	"github.com/docker/docker/libcontainerd/windowsoci"
     7  )
     8  
     9  // DefaultSpec returns default spec used by docker.
    10  func DefaultSpec() windowsoci.WindowsSpec {
    11  	s := windowsoci.Spec{
    12  		Version: windowsoci.Version,
    13  		Platform: windowsoci.Platform{
    14  			OS:   runtime.GOOS,
    15  			Arch: runtime.GOARCH,
    16  		},
    17  	}
    18  
    19  	return windowsoci.WindowsSpec{
    20  		Spec:    s,
    21  		Windows: windowsoci.Windows{},
    22  	}
    23  }