github.com/olljanat/moby@v1.13.1/oci/defaults_windows.go (about)

     1  package oci
     2  
     3  import (
     4  	"runtime"
     5  
     6  	"github.com/opencontainers/runtime-spec/specs-go"
     7  )
     8  
     9  // DefaultSpec returns default spec used by docker.
    10  func DefaultSpec() specs.Spec {
    11  	return specs.Spec{
    12  		Version: specs.Version,
    13  		Platform: specs.Platform{
    14  			OS:   runtime.GOOS,
    15  			Arch: runtime.GOARCH,
    16  		},
    17  		Windows: &specs.Windows{},
    18  	}
    19  }