Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unauthorized error using docker compose #209

Open
gigcastro opened this issue Mar 13, 2024 · 6 comments
Open

Unauthorized error using docker compose #209

gigcastro opened this issue Mar 13, 2024 · 6 comments
Assignees

Comments

@gigcastro
Copy link

Hi,

I'm attempting to install bagdb using the Without Authentication method.

Tried doing docker compose up and got:

 ✘ bagdb Error                                                                                                     1.2s 
Error response from daemon: Head "https://ghcr.io/v2/swri-robotics/bag-database/manifests/latest": unauthorized

Also tried with docker run directly and got:

...
Status: Downloaded newer image for ghcr.io/swri-robotics/bag-database/bag-database:latest
37ee247f1154c221dc89234852474c31b98d74f2db98722027d95fd9851cc467
docker: Error response from daemon: network bagdb not found.

Is there something I should do to being able to pull from the docker repositories?

@danthony06
Copy link
Contributor

danthony06 commented Mar 13, 2024 via email

@gigcastro
Copy link
Author

I wasn't correctly logged in, you where right.
But now I'm getting:
Error response from daemon: denied

I might've some missing permission in the token right?

@broccoli-smuggler
Copy link

I also have the same issue. Did anyone find a fix? Logged in to ghcr.io using standard login and trying to run docker-compose up.

@broccoli-smuggler
Copy link

Changing the docker-compose.yaml file to use swrirobotics/bag-database:latest instead seems to allow pulling the image.

@danthony06
Copy link
Contributor

@broccoli-smuggler I'm having a hard time reproducing this. If I run

docker pull ghcr.io/swri-robotics/bag-database:latest

I can successfully pull the latest image. Which docker file did you end up changing to fix the problem on your end?

@danthony06 danthony06 self-assigned this Apr 30, 2024
@danthony06
Copy link
Contributor

Okay, I think some of the problems may be because we had a lot of docker registry paths that looked like swri-robotics/bag-database/bag-database:tag (note the duplicated bag-database), and we partially switched over to paths like swri-robotics/bag-database:tag. I just updated the documentation and Docker files to the simplified paths, pushed and tagged the updated version, and released v3.5.3 that has all of these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants