Skip to content

Instantly share code, notes, and snippets.

@davidisnotnull
Created November 16, 2024 19:56
Show Gist options
  • Save davidisnotnull/2727f0a849efe0fb6ae3e09d0bb640f2 to your computer and use it in GitHub Desktop.
Save davidisnotnull/2727f0a849efe0fb6ae3e09d0bb640f2 to your computer and use it in GitHub Desktop.
Workaround for Docker Desktop in Ubuntu 24.04
The AppArmor in Ubuntu 24.04 causes Docker Desktop to fail to run. The workaround for this is to create a new profile in App Armor once Docker Desktop has been installed.
Run this command to create a new App Armor profile:
sudo nano /etc/apparmor.d/opt.docker-desktop.bin.com.docker.backend
And enter this into the profile in nano
abi <abi/4.0>,
include <tunables/global>
/opt/docker-desktop/bin/com.docker.backend flags=(default_allow) {
userns,
# Site-specific additions and overrides. See local/README for details.
include if exists <local/opt.docker-desktop.bin.com.docker.backend>
}
Restart the App Armor service
sudo systemctl restart apparmor.service
And Docker Desktop should run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment