I have not come across any solution yet.
I have the same question. I’m running Linux Mint codenamed “zena”. I’ve tried to add the Docker Debian repositories, however apt tells me that the repository doesn’t include any zena Release file, therefore it cannot use it securely.
marpolda@marpolda-VivoBook-ASUSLaptop-X421EAYB-K413EA:~$ sudo apt update
Mám:1 http://ddebs.ubuntu.com noble InRelease
Mám:2 https://repository.spotify.com stable InRelease
Mám:3 http://ddebs.ubuntu.com noble-updates InRelease
Mám:4 http://archive.ubuntu.com/ubuntu noble InRelease
Mám:5 https://dl.google.com/linux/chrome/deb stable InRelease
Mám:6 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Mám:7 https://packages.element.io/debian default InRelease
Mám:8 http://security.ubuntu.com/ubuntu noble-security InRelease
Mám:9 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Ign:10 https://download.docker.com/linux/debian zena InRelease
Ign:11 http://packages.linuxmint.com zena InRelease
Mám:12 http://packages.linuxmint.com zena Release
Err:13 https://download.docker.com/linux/debian zena Release
404 Not Found [IP: 13.227.192.5 443]
Načítají se seznamy balíků… Hotovo
E: Repositář „https://download.docker.com/linux/debian zena Release“ neobsahuje soubor Release.
N: Aktualizaci z takového repositáře nelze provést zabezpečeně a je proto implicitně zakázána.
N: Podrobnosti o vytváření a nastavení repositářů naleznete v manuálové stránce apt-secure(8).
I’ve been digging for a bit, displaying the contents of the /etc/os-release file, and found that my Linux Mint version has a codename “zena” with a corresponding Ubuntu codename “noble”. Unfortunately, none of those are available in the Docker repository.
Linux Mint “zena” is Ubuntu-based, so if you add any repository, it should be the one for Ubuntu. There is no guarantee that it will work as Linux Mint is not officially supported. A Linux Mint community could also help Distribution maintainers often create Wiki pages for Docker intstallation for not officially supported distributions.
Quote from the documentation (https://docs.docker.com/engine/install/ubuntu/)
Note
Installation on Ubuntu derivative distributions, such as Linux Mint, is not officially supported (though it may work).
If you try the installer guide for Ubuntu, wherever you see variables like this: "${UBUNTU_CODENAME:-$VERSION_CODENAME}"), you need to replace those with the actual codename of the Ubuntu distribution version on which your distribution was based. According to the Linux Mint version table (and as you also pointed out), it is “noble”.
I can’t try it, but it could work (no guarantee):
# Add Docker's official GPG key:
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: noble
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt update
update: I noticed tihs is a topic for Docker Desktop. Do you really want to install Docker Desktop or Docker CE? If you wanted Docker Desktop, my answer may not be enough. Docker Desktop is also not supported on Linux Mint, but you can give it a try after you added the repository to be able to download the docker cli.
Unfortunately, not even “noble” works, but I had success with “wormbook”, which is a codename of a corresponding vanilla Debian distro.
As I said, you would need to add an Ubuntu repository. If you try with the Debian repo, of course “noble” will not work for a codename.
If the previously shared script doesn’t remove the APT repository, you can delete it manually, otherwise you will see that failing even if the other one is added and I’m not even sure how you could install Docker from the right repo if two repositories have the same package.
If you really added the Ubuntu repo, a codename like “wormbook” could not possibly work as that would not exist in the repository for Ubuntu.
If the one you installed works fine, that’s okay, but since Linux Mint is based on Ubuntu, that would be the better repository.