summaryrefslogtreecommitdiff
path: root/daemon/start_windows.go
blob: 7804a877ff17237a6305a5c2e1f05d2859b1af4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package daemon

import (
	"github.com/docker/docker/container"
	"github.com/docker/docker/libcontainerd"
)

func (daemon *Daemon) getLibcontainerdCreateOptions(container *container.Container) (*[]libcontainerd.CreateOption, error) {
	createOptions := []libcontainerd.CreateOption{}
	createOptions = append(createOptions, &libcontainerd.FlushOption{IgnoreFlushesDuringBoot: !container.HasBeenStartedBefore})
	return &createOptions, nil
}