stable-diffusion-webui-docker
stable-diffusion-webui-docker copied to clipboard
[ADD] ComfyUI-Manager
Closes issue #711 This PR aims to install the ComfyUI-Manager when building the Comfy docker image
The only issue seems to be that ComfyUI manager ignores the custom_nodes path defined in the extra paths yaml, so nodes installed via the Manager aren't stored on the data mount.
Related: ltdrdata/ComfyUI-Manager/issues/420
The only issue seems to be that ComfyUI manager ignores the
custom_nodespath defined in the extra paths yaml, so nodes installed via the Manager aren't stored on the data mount.Related: ltdrdata/ComfyUI-Manager/issues/420
I just installed and it works but is there a workaround for this?
Hi,
I have been trying to install custom nodes via GitHub and getting the error: This action is not allowed with this security level configuration.
Here is the docker file:
FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1
RUN apt-get update && apt-get install -y git && apt-get clean
ENV ROOT=/stable-diffusion
RUN --mount=type=cache,target=/root/.cache/pip \
git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \
cd ${ROOT} && \
git checkout master && \
#git reset --hard 276f8fce9f5a80b500947fb5745a4dde9e84622d && \
pip install -r requirements.txt
RUN git clone https://github.com/ltdrdata/ComfyUI-Manager ${ROOT}/custom_nodes/ComfyUI-Manager && \
pip install -r ${ROOT}/custom_nodes/ComfyUI-Manager/requirements.txt
WORKDIR ${ROOT}
COPY . /docker/
RUN chmod u+x /docker/entrypoint.sh && cp /docker/extra_model_paths.yaml ${ROOT}
ENV NVIDIA_VISIBLE_DEVICES=all PYTHONPATH="${PYTHONPATH}:${PWD}" CLI_ARGS=""
EXPOSE 7860
ENTRYPOINT ["/docker/entrypoint.sh"]
CMD python -u main.py --listen --port 7860 ${CLI_ARGS}
Hi,
I have been trying to install custom nodes via GitHub and getting the error:
This action is not allowed with this security level configuration.Here is the docker file:
FROM pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1 RUN apt-get update && apt-get install -y git && apt-get clean ENV ROOT=/stable-diffusion RUN --mount=type=cache,target=/root/.cache/pip \ git clone https://github.com/comfyanonymous/ComfyUI.git ${ROOT} && \ cd ${ROOT} && \ git checkout master && \ #git reset --hard 276f8fce9f5a80b500947fb5745a4dde9e84622d && \ pip install -r requirements.txt RUN git clone https://github.com/ltdrdata/ComfyUI-Manager ${ROOT}/custom_nodes/ComfyUI-Manager && \ pip install -r ${ROOT}/custom_nodes/ComfyUI-Manager/requirements.txt WORKDIR ${ROOT} COPY . /docker/ RUN chmod u+x /docker/entrypoint.sh && cp /docker/extra_model_paths.yaml ${ROOT} ENV NVIDIA_VISIBLE_DEVICES=all PYTHONPATH="${PYTHONPATH}:${PWD}" CLI_ARGS="" EXPOSE 7860 ENTRYPOINT ["/docker/entrypoint.sh"] CMD python -u main.py --listen --port 7860 ${CLI_ARGS}
How are you accessing the interface? a lot of actions are restricted if you're not accessing it from localhost, this can be changed in the ComfyUI Manager settings, see https://github.com/ltdrdata/ComfyUI-Manager?tab=readme-ov-file#security-policy
@fahadshery For ComfyUI-Manager config.ini location in the container, my startup log said it's located: /stable-diffusion/user/default/ComfyUI-Manager/config.ini
This is unexpected, I thought it would use the version I included in my bind mount, or the version in the custom_nodes/ComfyUI-Manager I installed via the exec docker feature.
But it works!