Unable to create a privileged Docker container


(Twelfthdoctor) #1

Hello. I can`t create a privileged Docker container inside the LXC one.

root@kube:~# docker run --privileged hello-world
docker: Error response from daemon: linux runtime spec devices: open /dev/.lxd-mounts: permission denied.
ERRO[0000] error getting events from daemon: net/http: request canceled 

Config:

config:
  linux.kernel_modules: bridge,br_netfilter,ip_tables,ip6_tables,ip_vs,netlink_diag,nf_nat,overlay,xt_conntrack
  raw.lxc: |-
    lxc.cgroup.devices.allow = a
    lxc.cap.drop =
description: ""
devices:
  eth0:
    name: eth0
    nictype: bridged
    parent: lxdfan0
    type: nic
  root:
    path: /
    pool: local
    type: disk
name: kube
used_by:
- /1.0/containers/kube