mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f7fd408ba7
Signed-off-by: John Howard <jhoward@microsoft.com>
12 lines
437 B
Go
12 lines
437 B
Go
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
|
|
}
|