zhboner / realm

A network relay tool
MIT License
1.54k stars 285 forks source link

docker镜像报错: Error response from daemon: Head https://ghcr.io/v2/zhboner/realm/manifests/latest: unauthorized. #61

Closed noorzb closed 8 months ago

noorzb commented 2 years ago

大佬你好,realmdocker镜像是不是没有读取权限呢?我直接运行readme示例:

docker run -d -p 9000:9000 ghcr.io/zhboner/realm:latest -l 0.0.0.0:9000 -r 192.168.233.2:9000

会得到如下报错:

Unable to find image 'ghcr.io/zhboner/realm:latest' locally
docker: Error response from daemon: Head https://ghcr.io/v2/zhboner/realm/manifests/latest: unauthorized.
See 'docker run --help'.

Google了一下,说是需要personal access token (PAT)才行,不过我创建了之后,重新拉取镜像,依然是报错:

Error response from daemon: unauthorized
zephyrchien commented 2 years ago

@noahziheng Need help

noahziheng commented 2 years ago

@zhboner @zephyrchien I found no package in realm's container registry after my PR #50 merged. I remember Github Contianer Registry need configure package by repo owner or admin.

Github Documentation https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio

realm main repo:

image

my forked repo:

image

zephyrchien commented 2 years ago

Seems the package is private and not visible to the public. Let's wait for @zhboner to properly configure it.

zephyrchien commented 2 years ago

Screenshot from 2022-05-12 00-56-09

fjc0k commented 2 years ago
FROM alpine:3.9

ARG VERSION="v2.3.4"

WORKDIR /realm

RUN wget https://github.com/zhboner/realm/releases/download/${VERSION}/realm-x86_64-unknown-linux-musl.tar.gz \
  && tar -zxvf realm-x86_64-unknown-linux-musl.tar.gz \
  && cp realm /usr/bin/realm \
  && chmod +x /usr/bin/realm

ENTRYPOINT ["/usr/bin/realm"]
whao commented 1 year ago

Any updates on this issue?

Skyxim commented 1 year ago

Screenshot from 2022-05-12 00-56-09

Configuring access to packages for your personal account change the visibility

zurica2013 commented 1 year ago

老天,这个问题还没解决呢~~继续自己搞镜像吧

Handsome1080P commented 10 months ago

are u kidding me?first time on github?

teamilkman commented 8 months ago

不想开放就不要传github啊,搞这么老半天权限都不改

E021ntox commented 1 week ago

开发者来搞一个公开的容器啊