编辑
2025-03-14
深度学习
00

docker push kevinchina/deeplearning:sdwebui_base:

bash
FROM kevinchina/deeplearning:pytorch2.3.0-cuda12.1-cudnn8-devel-xformers ENV DEBIAN_FRONTEND=noninteractive # 安装基本软件包 RUN apt-get update && \ apt-get upgrade -y && \ apt-get -y --no-install-recommends install vim wget curl git build-essential bc && \ apt-get install -y libgl1 libglib2.0-0 ffmpeg tzdata iputils-ping libgoogle-perftools-dev nginx && \ ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ echo "Asia/Shanghai" > /etc/timezone ENV LD_PRELOAD=/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4

进入容器:

css
wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui.sh wget -q https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui/master/webui-user.sh

image.png

image.png

css
chmod 777 webui.sh webui-user.sh
export http_proxy=http://10.136.19.26:10828 export https_proxy=http://10.136.19.26:10828 ./webui.sh --no-download-sd-model --log-startup --loglevel DEBUG --skip-load-model-at-start # 中间缺包

等待安装完毕后:

unset http_proxy unset https_proxy

docker push kevinchina/deeplearning

docker run -p 8011:7860 \ --gpus device=3 \ -v /ssd/xiedong/aicy_and_so_on/models_x03_phone_realistic:/workspace/stable-diffusion-webui/models \ -it kevinchina/deeplearning:sdwebui_base_ui bash

把三方包放入:/workspace/stable-diffusion-webui/extensions

export http_proxy=http://10.136.19.26:10828 export https_proxy=http://10.136.19.26:10828 ./webui.sh --no-download-sd-model --log-startup --loglevel DEBUG --skip-load-model-at-start unset http_proxy unset https_proxy
cd /workspace/stable-diffusion-webui /opt/conda/bin/python3 /workspace/stable-diffusion-webui/webui.py \ --enable-insecure-extension-access \ --skip-python-version-check \ --skip-torch-cuda-test \ --skip-install \ --no-half-vae \ --timeout-keep-alive 300 \ --port 7860 \ --opt-sdp-no-mem-attention \ --no-download-sd-model \ --api --listen
git push kevinchina/deeplearning:sdwebui_base_ui_ic

使用

docker run -p 8011:7860 \ --gpus device=3 \ -v /ssd/xiedong/aicy_and_so_on/models_x03_phone_realistic:/workspace/stable-diffusion-webui/models \ -it kevinchina/deeplearning:sdwebui_base_ui_ic bash cd /workspace/stable-diffusion-webui /opt/conda/bin/python3 /workspace/stable-diffusion-webui/webui.py \ --enable-insecure-extension-access \ --skip-python-version-check \ --skip-torch-cuda-test \ --skip-install \ --no-half-vae \ --timeout-keep-alive 300 \ --port 7860 \ --opt-sdp-no-mem-attention \ --no-download-sd-model \ --api --listen
如果对你有用的话,可以打赏哦
打赏
ali pay
wechat pay

本文作者:Dong

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC。本作品采用《知识共享署名-非商业性使用 4.0 国际许可协议》进行许可。您可以在非商业用途下自由转载和修改,但必须注明出处并提供原作者链接。 许可协议。转载请注明出处!