# How to login to Docker Desktop for Linux

Logging into Docker Desktop for Linux is not a straightforward process.

### The Issue

The reason why you have landed here is most probably because of the following error:

![Unable to log in. You must initialize pass before logging in to Docker Desktop.](https://cdn.hashnode.com/res/hashnode/image/upload/v1734812308890/b5402888-8891-48a0-b4ee-118588b333bf.png align="center")

### Solution

First, create a gpg key:

```bash
gpg --generate-key
```

Expected output after answering all questions:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1734812681058/b9dc672b-67ff-4500-b303-a8eef82eb5b3.png align="center")

Then run pass init with the string shown in the screenshot.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1734812773527/f9bbad19-7ad4-489d-bb43-be313baa76e7.png align="center")

Now the sign-in button works as expected.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1734812931299/a41a1aa3-29bd-462e-8912-18bde460be7f.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1734812949899/8fa278dc-9203-46c6-9b22-e64a9d93026b.png align="center")

Sources:

[https://docs.docker.com/desktop/get-started/#credentials-management-for-linux-users](https://docs.docker.com/desktop/get-started/#credentials-management-for-linux-users)

[https://www.youtube.com/watch?v=AMcvwqvgU5U&t=590s](https://www.youtube.com/watch?v=AMcvwqvgU5U&t=590s)
