From 9d578a2e6db55f72a141bd77fff3c31f7aed104d Mon Sep 17 00:00:00 2001 From: Laura Brehm Date: Wed, 25 Oct 2023 16:18:32 +0100 Subject: [PATCH] Cleanup duplicate imports Kept `coci` import alias since we use it elsewhere, maybe to prevent confusion with our own `oci` package. Signed-off-by: Laura Brehm --- daemon/exec_linux.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/exec_linux.go b/daemon/exec_linux.go index 95440dd05a..7c44c40869 100644 --- a/daemon/exec_linux.go +++ b/daemon/exec_linux.go @@ -4,7 +4,6 @@ import ( "context" "github.com/containerd/containerd" - "github.com/containerd/containerd/oci" coci "github.com/containerd/containerd/oci" "github.com/containerd/containerd/pkg/apparmor" "github.com/docker/docker/container" @@ -29,7 +28,7 @@ func getUserFromContainerd(ctx context.Context, containerdCli *containerd.Client return specs.User{}, err } - opts := []oci.SpecOpts{ + opts := []coci.SpecOpts{ coci.WithUser(ec.User), coci.WithAdditionalGIDs(ec.User), coci.WithAppendAdditionalGroups(ec.Container.HostConfig.GroupAdd...),