|
@@ -41,12 +41,11 @@ func (clnt *client) Create(containerID string, checkpoint string, checkpointDir
|
|
logrus.Debugln("libcontainerd: client.Create() with spec", spec)
|
|
logrus.Debugln("libcontainerd: client.Create() with spec", spec)
|
|
|
|
|
|
configuration := &hcsshim.ContainerConfig{
|
|
configuration := &hcsshim.ContainerConfig{
|
|
- SystemType: "Container",
|
|
|
|
- Name: containerID,
|
|
|
|
- Owner: defaultOwner,
|
|
|
|
-
|
|
|
|
|
|
+ SystemType: "Container",
|
|
|
|
+ Name: containerID,
|
|
|
|
+ Owner: defaultOwner,
|
|
VolumePath: spec.Root.Path,
|
|
VolumePath: spec.Root.Path,
|
|
- IgnoreFlushesDuringBoot: spec.Windows.FirstStart,
|
|
|
|
|
|
+ IgnoreFlushesDuringBoot: false,
|
|
LayerFolderPath: spec.Windows.LayerFolder,
|
|
LayerFolderPath: spec.Windows.LayerFolder,
|
|
HostName: spec.Hostname,
|
|
HostName: spec.Hostname,
|
|
}
|
|
}
|
|
@@ -106,6 +105,10 @@ func (clnt *client) Create(containerID string, checkpoint string, checkpointDir
|
|
configuration.Servicing = s.IsServicing
|
|
configuration.Servicing = s.IsServicing
|
|
break
|
|
break
|
|
}
|
|
}
|
|
|
|
+ if s, ok := option.(*FlushOption); ok {
|
|
|
|
+ configuration.IgnoreFlushesDuringBoot = s.IgnoreFlushesDuringBoot
|
|
|
|
+ break
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
for _, layerPath := range spec.Windows.LayerPaths {
|
|
for _, layerPath := range spec.Windows.LayerPaths {
|