mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
container: add a span to CheckpointTo
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
package daemon // import "github.com/docker/docker/daemon"
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/docker/docker/container"
|
||||
)
|
||||
|
||||
@@ -11,7 +13,7 @@ func (daemon *Daemon) getLibcontainerdCreateOptions(daemonCfg *configStore, cont
|
||||
// Ensure a runtime has been assigned to this container
|
||||
if container.HostConfig.Runtime == "" {
|
||||
container.HostConfig.Runtime = daemonCfg.Runtimes.Default
|
||||
container.CheckpointTo(daemon.containersReplica)
|
||||
container.CheckpointTo(context.WithoutCancel(context.TODO()), daemon.containersReplica)
|
||||
}
|
||||
|
||||
shim, opts, err := daemonCfg.Runtimes.Get(container.HostConfig.Runtime)
|
||||
|
||||
Reference in New Issue
Block a user