CRITICAL:docker_shell:The binfmt_misc system could not be mounted.
J2B4U opened this issue · 1 comments
J2B4U commented
Hello I try to build an ONL myself but I cannot pass the step of the make docker I always get this error
root@CT107:~/OpenNetworkLinux# make docker
Pulling opennetworklinux/builder8:1.11...
done.
[ ok ] Starting apt-cacher-ng: apt-cacher-ng.
mount: permission denied
CRITICAL:docker_shell:The binfmt_misc system could not be mounted.
Makefile:56: recipe for target 'docker' failed
make: *** [docker] Error 1
any idea ? I tried many docker version and many deb os version 9-10-11 and I always bet stuck at same place
ljluestc commented
#!/bin/bash
docker ps
docker_info_exit_code=$?
if [ $docker_info_exit_code -ne 0 ]; then
echo "Error: Insufficient Docker permissions. Make sure you have the necessary privileges to run Docker commands."
exit 1
fi
if systemctl is-active --quiet apparmor; then
sudo service apparmor stop
echo "AppArmor service stopped."
fi
if ! mount | grep -q binfmt_misc; then
echo "Error: binfmt_misc is not mounted on the host system."
exit 1
fi
sudo service docker restart
echo "Docker service restarted."
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
echo "Docker updated to the latest version."
echo "Docker troubleshooting steps completed."
Please try this script for more insight about environment settings