본문 바로가기
Docker/Docker for Window

[Docker] window docker 환경에서 a1111 실행해 보기

by pulluper 2023. 8. 24.
반응형

1.  docker pull 

docker pull pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel

 

2. docker run

docker run -itd --gpus all --restart always --name cvml_a1111 -v /mnt/d/data:/usr/src/data pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel /bin/bash

 

3. docker attach 

docker attach cvml_aaaa1

 

4. install git

apt-get update
apt-get install git -y

 

5. git clone 

git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui && cd stable-diffusion-webui

 

5. make venv

python3.10 -m venv venv

 

6. dependency for wsl2 (해주셔야 wsl2에서 에러 안납니다)

 

apt-get install libgl1-mesa-glx -y

 

apt-get install libglib2.0-0 -y

 

apt-get install wget

 

7. run webui (root 에서 이용하기 위해 -f 를 붙임)

./webui.sh -f

 

8. 결과

반응형

댓글