Main Problem

root@kali:~# docker run hello-world
docker: Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded: running `/sbin/apparmor_parser apparmor_parser --version` failed with output: Failed to load features from '/usr/share/apparmor-features/features': No such file or directory

Try to solve

Searching to google

running `/sbin/apparmor_parser apparmor_parser --version` failed with output: Failed to load features from '/usr/share/apparmor-features/features': No such file or directory

‌but no idea about this error message 🤪

My prediction

The problem is with Kali Linux, generally Debian system. Before I installed docker with snap so I need reference from this source about my problem.

any reference:

So, fuck with them. Docker snap package is suck in Kali Linux. Let’s install docker from the official reference.

Reading official documentation


Thereis avaliable debian system in official reference. But, Docker does not offer any guarantees on untested and unsupported Debian distributions. It will not work.

Solved with simple line :v

First, uninstall docker from snap and Install from package https://docs.docker.com/engine/install/debian/#install-from-a-package

get package from here and its requirement

install it all with dpkg -i and create symlink

After installation, run it

systemctl start containerd
systemctl enable containerd

systemctl start docker
systemctl enable docker

It’s just work.