docker / desktop-linux

Bug reports for Docker Desktop for Linux
https://docs.docker.com/desktop/linux/
81 stars 6 forks source link

It seems docker desktop 4.17.0 won't start at login on Linux Mint 21.1 #130

Open applearound opened 1 year ago

applearound commented 1 year ago

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

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

  1. follow the official instruction
  2. try either one of the methods above
  3. systemctl and journalctl do not show any errors log
maveryKearney commented 1 year ago

Yours was my experience . Also

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--.deb

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

gluonhiggs commented 1 year ago

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.

amrit-niure commented 3 months ago

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]

uid Molly subrsa3072 2022-03-31 [E] [expires: 2024-03-30] Note the `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 ` Replace `` 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.