diff --git a/containerd/containerd.go b/containerd/containerd.go index 4ab2d8c..776ef30 100644 --- a/containerd/containerd.go +++ b/containerd/containerd.go @@ -39,7 +39,7 @@ func (d *Driver) createContainer(image containerd.Image, containerName, containe opts = append(opts, oci.WithImageConfigArgs(image, args)) if len(config.CapAdd) > 0 { - opts = append(opts, oci.WithCapabilities(config.CapAdd)) + opts = append(opts, oci.WithAddedCapabilities(config.CapAdd)) } if len(config.CapDrop) > 0 {