It seems docker desktop 4.17.0 won't start at login on Linux Mint 21.1
- [x] I have tried with the latest version of Docker Desktop
- [x] I have tried disabling enabled experimental features
- [ ] I have uploaded Diagnostics
- Diagnostics ID:
Expected behavior
follow the ubuntu installation instruction(actually I am using Linux Mint 21.1)
it says:
To enable Docker Desktop to start on login, from the Docker menu, select Settings > General > Start Docker Desktop when you log in.
and also
Alternatively, open a terminal and run:
systemctl --user enable docker-desktop
Actual behavior
both methods are not working to let docker desktop run at login.
Information
- Linux distro: Linux Mint
- Distro version: 21.1
- Docker Desktop Version: 4.17.0
here is the docker-desktop.service file
[Unit]
Description=Docker Desktop
Requires=graphical-session.target
After=graphical-session.target
[Service]
ExecStart=/opt/docker-desktop/bin/com.docker.backend
Type=exec
TimeoutSec=60
[Install]
Alias=docker-desktop.service
WantedBy=graphical-session.target
Steps to reproduce the behavior
- follow the official instruction
- try either one of the methods above
- systemctl and journalctl do not show any errors log
Yours was my experience . Also - Prior to attempting DockerDesktop on my linux-mint machine, I had been using docker engine. I uninstalled Docker Engine. but perhaps incompletely, - I have DockerDesktop running on macOS and Windows10 machines. I wanted to be using DockerDesktop on Linux-mint since that is my primary development platform, and that seemed to be the direction the docker product line is taking.
Only the last step failed in the installation process I followed. Two commands comprised that step:
sudo apt-get update
sudo apt-get install ./docker-desktop-
And response at the terminal was:
Ign:1 http://packages.linuxmint.com vera InRelease
Hit:2 http://packages.linuxmint.com vera Release
Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:5 https://packages.microsoft.com/repos/vscode stable InRelease
Ign:6 https://download.docker.com/linux/ubuntu vera InRelease
Get:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Err:9 https://download.docker.com/linux/ubuntu vera Release
404 Not Found [IP: 13.225.63.62 443]
Hit:10 http://ppa.launchpad.net/git-core/ppa/ubuntu jammy InRelease
Hit:11 http://security.ubuntu.com/ubuntu jammy-security InRelease
Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [459 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [949 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [605 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [895 kB]
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu vera Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: http://ppa.launchpad.net/git-core/ppa/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. bash: version: No such file or directory
Based on what little I know, I am perhaps missing some or many essential files: libs. bins includes... There are complaints about "vera" which is the name of the current Linux Mint release I am using. Where does that sneak into the process?
Of course this what I am seeing, and not necessarily what the original submitter was seeing though our ultimate experience was the same.
For now what this means is that should move to my windows or mac machine, and hope for progress reported here. -m
I have the same issue as @maveryKearney. The problem is in echo \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null, "$(. /etc/os-release && echo "$VERSION_CODENAME")" extracts out the VERSION_CODENAME, which is vera for Mint 21.1. However, we are installing docker-desktop for Mint from an Ubuntu version. Therefore, with the given echo, the apt will seek docker from Ubuntu Vera, which does not exist. Basically, Mint 21.1 is built on Ubuntu 22.04 jammy jellyfish, so... just replace "$(. /etc/os-release && echo "$VERSION_CODENAME")" with jammy.
Sign In to Docker Desktop for Linux
To sign in to Docker Desktop for Linux, you need to set up pass, which is a password manager that uses GPG for encryption. Here’s a step-by-step guide to get you set up:
1. Generate a GPG Key
Open a terminal and run the following command to generate a GPG key:
gpg --generate-key
Follow the prompts to provide your name, email, and other details. Choose the default settings if you're unsure.
After generating the key, you’ll see output similar to:
pubrsa3072 2022-03-31 [SC] [expires: 2024-03-30]
gpg-id public key as you’ll need it in the next step.
2. Initialize pass
Install pass if it’s not already installed:
sudo apt-get install pass
Initialize pass using the GPG key you generated:
pass init <your_generated_gpg-id_public_key>
Replace <your_generated_gpg-id_public_key> with the actual key ID you noted earlier.
This command will create a directory at ~/.password-store/ and initialize it for use with GPG.
3. Sign In to Docker Desktop
Open Docker Desktop on your Linux machine.
You should see a prompt to sign in. Enter your Docker ID and password.
Docker Desktop will use pass to securely store your credentials.