https://github.com/guidanoli/ubuntu-24.04-lts-docker-desktop-fix
Fix for running Docker Desktop in Ubuntu 24.04 LTS
https://github.com/guidanoli/ubuntu-24.04-lts-docker-desktop-fix
docker-desktop ubuntu-2404
Last synced: 2 months ago
JSON representation
Fix for running Docker Desktop in Ubuntu 24.04 LTS
- Host: GitHub
- URL: https://github.com/guidanoli/ubuntu-24.04-lts-docker-desktop-fix
- Owner: guidanoli
- License: gpl-3.0
- Created: 2024-09-11T13:05:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-11T17:31:13.000Z (about 1 year ago)
- Last Synced: 2025-04-13T15:13:20.987Z (6 months ago)
- Topics: docker-desktop, ubuntu-2404
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fix for running Docker Desktop in Ubuntu 24.04 LTS
According to the official Docker Desktop [installation page](https://docs.docker.com/desktop/install/ubuntu/) for Ubuntu...
> The latest Ubuntu 24.04 LTS is not yet supported. Docker Desktop will fail to start. Due to a change in how the latest Ubuntu release restricts the unprivileged namespaces, `sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0` needs to be run at least once. Refer to the [Ubuntu Blog](https://ubuntu.com/blog/ubuntu-23-10-restricted-unprivileged-user-namespaces) for more details.
So I decided to write a small service for doing just that. Here are the installation steps:
```sh
git clone https://github.com/guidanoli/ubuntu-24.04-lts-docker-desktop-fix
sudo cp fix-docker-desktop /usr/libexec
sudo cp fix-docker-desktop.service /etc/systemd/system
sudo systemctl enable fix-docker-desktop.service
```