Fix add capabilities.

This commit is contained in:
Shishir Mahajan 2020-06-23 20:58:45 -07:00
parent b4f27fa4e2
commit d74c364fe5
No known key found for this signature in database
GPG Key ID: D41782E7688DEC4A

View File

@ -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 {