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

[bug]: 群晖7.2使用docker-compose部署,卡在最后一步 #378

Closed
3 tasks done
nageshuizeii opened this issue Jul 28, 2024 · 8 comments
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@nageshuizeii
Copy link

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已确认我已升级到最新版本(最新代码)测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

campus框架版本

1.0.13

本项目 campus-imaotai 版本

1.0.13

运行环境

其它(请在下方说明)

运行架构

x86

问题描述

ash-4.4# docker-compose build
[+] Building 0.0s (0/0)
[+] Building 0.4s (1/2)
=> [internal] load build definition from mysql-dockerfile 0.3s
=> => transferring dockerfile: 170B 0.0s
[+] Building 0.6s (2/3)
[+] Building 0.7s (2/3)
[+] Building 2.2s (3/3) FINISHED
=> [internal] load build definition from mysql-dockerfile 0.3s
=> => transferring dockerfile: 170B 0.0s
[+] Building 1.9s (3/3) FINISHED
=> [internal] load build definition from redis-dockerfile 0.2s
=> => transferring dockerfile: 323B 0.0s
=> [internal] load .dockerignore 0.3s
=> => transferring context: 2B 0.0s
=> ERROR [internal] load metadata for docker.io/library/redis:latest 1.6s

[internal] load metadata for docker.io/library/redis:latest:


failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests 5.7]: 403 Forbidden

期望的结果是什么?

部署成功

简单的复现代码/链接(可选)

ash-4.4# docker-compose build
[+] Building 0.0s (0/0)                                                         
[+] Building 0.4s (1/2)                                                         
 => [internal] load build definition from mysql-dockerfile                 0.3s 
 => => transferring dockerfile: 170B                                       0.0s
[+] Building 0.6s (2/3)                                                         
[+] Building 0.7s (2/3)                                                         
[+] Building 2.2s (3/3) FINISHED                                                
 => [internal] load build definition from mysql-dockerfile                 0.3s
 => => transferring dockerfile: 170B                                       0.0s
[+] Building 1.9s (3/3) FINISHED                                                
 => [internal] load build definition from redis-dockerfile                 0.2s
 => => transferring dockerfile: 323B                                       0.0s
 => [internal] load .dockerignore                                          0.3s
 => => transferring context: 2B                                            0.0s
 => ERROR [internal] load metadata for docker.io/library/redis:latest      1.6s
------
 > [internal] load metadata for docker.io/library/redis:latest:
------
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests 5.7]: 403 Forbidden

日志记录(可选)

No response

补充说明(可选)

No response

@nageshuizeii nageshuizeii added the bug Something isn't working label Jul 28, 2024
@oddfar
Copy link
Owner

oddfar commented Jul 28, 2024

@nageshuizeii
Copy link
Author

教程都看过了,没有使用docker-compose部署的

@oddfar
Copy link
Owner

oddfar commented Jul 28, 2024

403 Forbidden :Docker Hub 访问受限
可以尝试手动拉取 redis 镜像,然后再运行 docker-compose build:

docker pull redis:latest

@nageshuizeii
Copy link
Author

同样报错failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests 5.7]: 403 Forbidden

已经拉取了redis

ash-4.4# docker pull redis:latest latest: Pulling from library/redis efc2b5ad9eec: Already exists e1881a4a6fdd: Pull complete 272d90b014a2: Pull complete 1c6e055151a6: Pull complete 6a4ea20e8d76: Pull complete 1aa3206413a2: Pull complete 4f4fb700ef54: Pull complete 7f3c1f3a060e: Pull complete Digest: sha256:e59c42a34bdb950f988a1578504c31ce981096e3a18b83db1808bd7a32302e7f Status: Downloaded newer image for redis:latest docker.io/library/redis:latest ash-4.4# docker-compose build [+] Building 0.0s (0/0) [+] Building 0.1s (0/2) => [internal] load build definition from redis-dockerfile 0.1s => => transferring dockerfile: 323B 0.0s => [internal] load .dockerignore 0.0s [+] Building 0.3s (2/3) [+] Building 1.2s (5/8) => [internal] load build definition from redis-dockerfile 0.2s => => transferring dockerfile: 323B 0.0s [+] Building 1.4s (6/8) => [internal] load build definition from redis-dockerfile 0.2s => => transferring dockerfile: 323B 0.0s => [internal] load .dockerignore 0.2s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/redis:latest 0.0s => [1/4] FROM docker.io/library/redis 0.6s => [internal] load build context 0.2s => => transferring context: 96B 0.0s => [2/4] RUN mkdir -p /home/campus/redis 0.5s failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests 5.7]: 403 Forbidden

@oddfar
Copy link
Owner

oddfar commented Jul 28, 2024

那你试试 #374 sqlite版的

@nageshuizeii
Copy link
Author

谢谢,的确可以用

@gemail1024
Copy link

教程都看过了,没有使用docker-compose部署的

docker-compose可以参考这篇教程: https://www.bilibili.com/read/cv33190924

@nageshuizeii
Copy link
Author

谢谢!用同一个作者的一键命令,已经启动了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants