Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> Upstream-commit: 7acea2a243d25c061d12a2a2f8bbd4e5955a85f4 Component: engine
28 lines
518 B
Go
28 lines
518 B
Go
package containerd
|
|
|
|
import (
|
|
"context"
|
|
|
|
specs "github.com/opencontainers/runtime-spec/specs-go"
|
|
)
|
|
|
|
func createDefaultSpec(ctx context.Context, id string) (*specs.Spec, error) {
|
|
return &specs.Spec{
|
|
Version: specs.Version,
|
|
Root: &specs.Root{},
|
|
Process: &specs.Process{
|
|
Cwd: `C:\`,
|
|
ConsoleSize: &specs.Box{
|
|
Width: 80,
|
|
Height: 20,
|
|
},
|
|
},
|
|
Windows: &specs.Windows{
|
|
IgnoreFlushesDuringBoot: true,
|
|
Network: &specs.WindowsNetwork{
|
|
AllowUnqualifiedDNSQuery: true,
|
|
},
|
|
},
|
|
}, nil
|
|
}
|