Last active
September 25, 2024 14:09
-
-
Save shqear93/8be4c58adff3c27f53096105e6ca2c7b to your computer and use it in GitHub Desktop.
Disable AppArmor completely without breaking snapd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# It was a nightmare when! aftrer installing docker i couldn't expose any port | |
# so far because apparmor was preventing docker from controlling the network | |
# I spent days looking for the solution till I found this documentation <3 : | |
# https://wiki.debian.org/AppArmor/HowToUse | |
sudo mkdir -p /etc/default/grub.d | |
echo 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT apparmor=0"' \ | |
| sudo tee /etc/default/grub.d/apparmor.cfg | |
sudo update-grub | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍