docker安装comfyui
下载镜像obeliks/comfyui
run的时候配置
-gpus all
使容器可以使用宿主机的GPU,-p 8188:8188
暴露端口8188用于访问web页面
安装comfyui-manager
cd custom_nodes
切换到custom_nodes目录下git clone https://github.com/ltdrdata/ComfyUI-Manager comfyui-manager
下载comfyui-manager重启comfyui
安装自定义节点时出现报错
安装自定义节点报错内容为
Installation Error:Install(git-clone) error[2]: https://github.com/numz/ComfyUI-SeedVR2_VideoUpscaler / module 'cm_global' has no attribute 'pip_overrides'
上网查找问题原因,说是版本问题,
将comfyui更新,未解决
将comfyui-manager更新,未解决
执行
pip install --upgrade pip
更新pip,未解决
然后查看日志无报错,但是启动时有报错,报错内容为
error: failed to create directory /cache/uv: Permission denied (os error 13)
Failed to execute startup-script: /app/custom_nodes/comfyui-manager/prestartup_script.py
Prestartup times for custom nodes: 0.7 seconds (PRESTARTUP FAILED)
临时解决办法:
# 进入容器
docker exec -u root -it comfyui bash
# 修复缓存权限
mkdir -p /cache/uv
chmod -R 777 /cache
# 重启服务
设置后解决了安装自定义节点报错和启动时报错
PS: 并没有修改Dockerfile
文件,意味着创建容器时还会有这个问题