Skip to content

Instantly share code, notes, and snippets.

View olaferlandsen's full-sized avatar
🏠
Aló?

Olaf Erlandsen olaferlandsen

🏠
Aló?
  • Chile
  • 08:15 (UTC -03:00)
View GitHub Profile
@olaferlandsen
olaferlandsen / INSTRUCTIONS.md
Last active March 13, 2025 18:21
Docker Desktop Fix-Trick Workaround for Ubuntu 24.04+

Temporary Trick to Keep Docker Desktop Working Correctly on Ubuntu(24.04+; including 24.10) Without Losing Data 🐳🚀

This script provides a temporary workaround to make Docker Desktop function "correctly" on Ubuntu 24.04+ without losing volumes, images, or containers. It helps avoid the common issue where Docker Desktop fails to start, requiring users to delete ~/.docker or reinstall Docker Desktop repeatedly to make it work again.

🛠 How It Works?

When Ubuntu starts or a user logs in, the script checks if Docker Desktop is running. If Docker is NOT running, it deletes a specific file that may be preventing it from starting correctly. This trick avoids unnecessary resets and ensures Docker Desktop can start properly without erasing your existing containers, images, or volumes. It also runs before shutdown or reboot, ensuring a clean state for the next session.