Docker Community Forums

Share and learn in the Docker community.

Kubernetes pod is not spinning up when privileged mode is true

When I’m trying to use docker in docker I need to use privileged mode as true but in this case kube pod is is not spinning up. After removing the privileged flag pod started spinning but I am getting the below mentioned issue-

e is 65537 (0x010001)
Signature ok
subject=CN = docker:dind client
Getting CA Private Key
/certs/client/cert.pem: OK
mount: permission denied (are you root?)
Could not mount /sys/kernel/security.
AppArmor detection and --privileged mode might break.
mount: permission denied (are you root?)

Instead of privileged mode I have used
securityContext:
** runAsUser: 0**
** runAsGroup: 0**

But still I’m getting same issue.

Please help me out to understand this issue and assist me further to overcome this problem.

Can anyone help me on this??