YanWenKun / ComfyUI-Docker

🐳Dockerfile for 🎨ComfyUI. | 容器镜像与启动脚本
https://hub.docker.com/r/yanwk/comfyui-boot
Other
392 stars 81 forks source link

about root permission #47

Closed 0913ktg closed 1 month ago

0913ktg commented 2 months ago

Hello, thank you for your contribution.

I am currently using the yanwk/comfyui-boot:cu121 image to create and use a container. I am using the runner user, but I need root user privileges, so I am inquiring about this.

How can I use root privileges? Can you provide the password?

Thank you.

ycrao commented 2 months ago

@0913ktg

docker exec -it --user root {your_comfyui-boot_container_id} /bin/bash 

or add user: "root" in docker-compose.yml like file-chown section.

image

YanWenKun commented 2 months ago

@ycrao Thanks for help!

@0913ktg Another solution is using cu121-megapak or cu124-megapak. They are using root by design.