Docker Community Forums

Share and learn in the Docker community.

Docker on LXC throws Apparmor error

(Mnunes) #1

I’m trying to use Docker inside LXC. For it to even install I had to add lxc.apparmor.profile = unconfined to the container’s config file. Now the issue is when starting a docker machine with docker run --rm -it hello-world. This is the output:

root@w1:~# docker run --rm -it hello-world
docker: Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded.

The LXC container is privileged. Host is the latest LTS Ubuntu and the LXC is 16.04. Docker is version 17.05.0-ce, build 89658be.