зеркало из https://github.com/microsoft/docker.git
20 строки
333 B
Go
20 строки
333 B
Go
package oci
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
|
)
|
|
|
|
// DefaultSpec returns default spec used by docker.
|
|
func DefaultSpec() specs.Spec {
|
|
return specs.Spec{
|
|
Version: specs.Version,
|
|
Platform: specs.Platform{
|
|
OS: runtime.GOOS,
|
|
Arch: runtime.GOARCH,
|
|
},
|
|
Windows: &specs.Windows{},
|
|
}
|
|
}
|