When I run "iotedge check" it yields a docker error

I’ve installed iotedge on a banana pi device, which is running Ubuntu 16.04.5 LTS/armv7l.

When I run iotedge check, I get a result that indicates something’s up with my docker installation. The output includes this statement,

“docker: Error response from daemon: Could not check if docker-default
AppArmor profile was loaded: open
/sys/kernel/security/apparmor/profiles: no such file or directory.”

When I tried to run a simple docker image (“docker run hello-world”) afterwards, I got the same error.

I’ve been trying to load the docker-default profile myself, manually, but I’m at my limit in terms of understanding how to actually do that, and resolve this problem.

Source: StackOverflow