Docker + LXC Proxmox

Using Docker inside Proxmox LXC

Proxmox 5.2-1

My err:

# docker run  hello-world container_linux.go:247: starting 
container process caused "process_linux.go:291: setting cgroup config 
for ready process caused \"failed to write c 10:200 rwm to 
devices.allow: write 
/sys/fs/cgroup/devices/docker/4cefb8985663a557a5749397458aac79cc20e8fd2392ab4063602ab84c339b3e/devices.allow:
 operation not permitted\""
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:291: setting cgroup config for ready process caused \"failed to write c 10:200 rwm to devices.allow: write /sys/fs/cgroup/devices/docker/4cefb8985663a557a5749397458aac79cc20e8fd2392ab4063602ab84c339b3e/devices.allow: operation not permitted\"".


Add this lines inside  /usr/share/lxc/config/centos.common.conf:

### Docker 
lxc.cgroup.devices.allow = c *:* rwm
lxc.cgroup.devices.allow = a *:* rwm
lxc.cap.drop =

Then, inside /etc/pve/lxc/<lxc_id>.conf

lxc.apparmor.profile: unconfined


Obs: Reboot yours proxmox lxc containers. (don't need to reboot the proxmox server)