mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Use separate exec-root for test daemons
Fixes #21545
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 0d9b94c4c5
)
This commit is contained in:
parent
8b0179c771
commit
073d7841b4
2 changed files with 2 additions and 1 deletions
|
@ -144,6 +144,7 @@ func (d *Daemon) StartWithLogFile(out *os.File, providedArgs ...string) error {
|
|||
d.Command,
|
||||
"--containerd", "/var/run/docker/libcontainerd/docker-containerd.sock",
|
||||
"--graph", d.root,
|
||||
"--exec-root", filepath.Join(d.folder, "exec-root"),
|
||||
"--pidfile", fmt.Sprintf("%s/docker.pid", d.folder),
|
||||
fmt.Sprintf("--userland-proxy=%t", d.userlandProxy),
|
||||
)
|
||||
|
|
|
@ -210,7 +210,7 @@ func (r *remote) getLastEventTimestamp() int64 {
|
|||
t := time.Now()
|
||||
|
||||
fi, err := os.Stat(r.eventTsPath)
|
||||
if os.IsNotExist(err) {
|
||||
if os.IsNotExist(err) || fi.Size() == 0 {
|
||||
return t.Unix()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue