2016-05-23 21:49:50 +00:00
|
|
|
package daemon
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/docker/docker/container"
|
|
|
|
"github.com/docker/docker/libcontainerd"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (daemon *Daemon) getLibcontainerdCreateOptions(container *container.Container) (*[]libcontainerd.CreateOption, error) {
|
2016-09-16 17:41:47 +00:00
|
|
|
createOptions := []libcontainerd.CreateOption{}
|
|
|
|
createOptions = append(createOptions, &libcontainerd.FlushOption{IgnoreFlushesDuringBoot: !container.HasBeenStartedBefore})
|
|
|
|
return &createOptions, nil
|
2016-05-23 21:49:50 +00:00
|
|
|
}
|