收起左侧

跑满宽带:解决immich通过compose部署慢的终极办法

2
回复
923
查看
[ 复制链接 ]

1

主题

1

回帖

0

牛值

江湖小虾

2025-1-3 15:39:51 显示全部楼层 阅读模式

在部署immich的时候很多人都会遇到镜像下载超级慢的情况,在更换镜像源也不能跑满宽带,我在网上找到了解决办法,特别感谢zpcode

解决方案:

将docker-compose.yml中的 image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}

改为:image: ghcr.nju.edu.cn/immich-app/immich-server:${IMMICH_VERSION:-release}

共两处,例如我的docker-compose.yml的文件的 image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}分别在第14行,和第38行,改完这两处后实测跑满宽带

收藏
送赞 1
分享

13

主题

16

回帖

0

牛值

初出茅庐

2025-1-20 14:35:00 显示全部楼层
会出错
Container immich_machine_learning Starting
Container immich_postgres Starting
Container immich_redis Starting
Container immich_postgres Started
Container immich_redis Started
Container immich_server Starting
Container immich_machine_learning Started
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/localtime" to rootfs at "/etc/localtime": mount /localtime:/etc/localtime (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
Exited:1

2

主题

4

回帖

0

牛值

江湖小虾

2025-5-30 11:25:14 显示全部楼层

说对了一半,下边那个是immich_machine_learning,你把immich-server的链接写到那怎么行

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则