본문 바로가기
Docker/Docker for Linux

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

by pulluper 2023. 8. 30.
반응형

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 pytorch211 pytorch/pytorch:2.1.1-cuda12.1-cudnn8-devel /bin/bash

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

 

3. docker attach / docker exec

docker attach cvml_aaaa1

 

4. 패키지 정보 업데이트

apt-get update

 

5. git 설치

apt-get install git -y

 

6. clone and cd

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

 

7. 

python3.10 -m venv venv

 

8. run webui

 

./webui.sh -f
반응형

댓글