Merge pull request #6856 from kangclzjc/container-remove-dup-20220426
remove duplicate
This commit is contained in:
commit
7bd42d226a
@ -35,7 +35,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// WithNewSnapshot wraps `containerd.WithNewSnapshot` so that if creating the
|
// WithNewSnapshot wraps `containerd.WithNewSnapshot` so that if creating the
|
||||||
// snapshot fails we make sure the image is actually unpacked and and retry.
|
// snapshot fails we make sure the image is actually unpacked and retry.
|
||||||
func WithNewSnapshot(id string, i containerd.Image, opts ...snapshots.Opt) containerd.NewContainerOpts {
|
func WithNewSnapshot(id string, i containerd.Image, opts ...snapshots.Opt) containerd.NewContainerOpts {
|
||||||
f := containerd.WithNewSnapshot(id, i, opts...)
|
f := containerd.WithNewSnapshot(id, i, opts...)
|
||||||
return func(ctx context.Context, client *containerd.Client, c *containers.Container) error {
|
return func(ctx context.Context, client *containerd.Client, c *containers.Container) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user