4

I am trying to install lemmy via Docker on Debian. I've configured Postgres and my config files but I'm getting an error when I try to docker compose up -d.

$ docker compose up -d 
[+] Running 0/0
 ⠋ postfix Pulling                                                                                                                                                                                                                 0.0s 
 ⠋ pictrs Pulling                                                                                                                                                                                                                  0.0s 
 ⠋ lemmy-ui Pulling                                                                                                                                                                                                                0.0s 
 ⠋ postgres Pulling                                                                                                                                                                                                                0.0s 
 ⠋ proxy Pulling                                                                                                                                                                                                                   0.0s 
 ⠋ lemmy Pulling                                                                                                                                                                                                                   0.0s 
error getting credentials - err: exit status 1, out: `Could not connect: Permission denied`

Googling this error leads me to believe its a docker issue, but I'm not quite sure how to go about fixing it. Thanks!

top 10 comments
sorted by: hot top controversial new old
[-] BlackEco@lemmy.blackeco.com 2 points 1 year ago

Are you logged into Docker? What's the output of docker login?

[-] MrRazamataz@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

I get

Error saving credentials: error storing credentials - err: exit status 1, out: `Could not connect: Permission denied`

when I try to login with docker login using my username and password for hub.docker.com

[-] BlackEco@lemmy.blackeco.com 1 points 1 year ago* (last edited 1 year ago)

You should login with an Access Token rather than your password. You can generate a new Access Token here.

[-] MrRazamataz@lemmy.world 1 points 1 year ago

Doing that I get the same thing. I know its not the password/access code thats the issue because when I purposefully mistype the code, I get a different error:

$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: mrrazamataz
Password: 
Error saving credentials: error storing credentials - err: exit status 1, out: `Could not connect: Permission denied`
$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: mrrazamataz
Password: 
Error response from daemon: Get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password
$
[-] BlackEco@lemmy.blackeco.com 1 points 1 year ago

Oh, do you run the Docker commands as root?

[-] MrRazamataz@lemmy.world 1 points 1 year ago

No, I'm running them on a user called lemmy which is added to the docker usergroup.

[-] BlackEco@lemmy.blackeco.com 1 points 1 year ago
[-] MrRazamataz@lemmy.world 1 points 1 year ago

I have not, however, thanks to the folk at the Lemmy matrix group, I was able to get past this issue.

[-] BlackEco@lemmy.blackeco.com 1 points 1 year ago
[-] MrRazamataz@lemmy.world 1 points 1 year ago

Permissions issue with the account I was using. Didn't have correct keys. If someone needs help, read from here https://matrix.to/#/!sQatZSAshifNjHkkHG:discuss.online/$rSiNArh2p00u-schxerxe4c9dIvGb-oENJ8yAQc5l5Y?via=matrix.org&via=mozilla.org&via=nope.chat

this post was submitted on 23 Aug 2023
4 points (100.0% liked)

Lemmy Support

4657 readers
2 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS