1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/oci/defaults_windows.go

24 lines
414 B
Go
Raw Permalink Normal View History

package oci
import (
"runtime"
"github.com/docker/docker/libcontainerd/windowsoci"
)
// DefaultSpec returns default spec used by docker.
func DefaultSpec() windowsoci.WindowsSpec {
s := windowsoci.Spec{
Version: windowsoci.Version,
Platform: windowsoci.Platform{
OS: runtime.GOOS,
Arch: runtime.GOARCH,
},
}
return windowsoci.WindowsSpec{
Spec: s,
Windows: windowsoci.Windows{},
}
}