Add install and run instructions
This commit is contained in:
parent
b740b50c8a
commit
f916c77cc4
22
README.md
22
README.md
|
@ -1,2 +1,22 @@
|
||||||
# stablediffusion
|
# Stable Diffusion Example
|
||||||
|
|
||||||
|
|
||||||
|
## Install Docker
|
||||||
|
|
||||||
|
```
|
||||||
|
curl https://get.docker.com | sh
|
||||||
|
|
||||||
|
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
|
||||||
|
&& curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
|
||||||
|
&& curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
|
||||||
|
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y nvidia-docker2 docker-compose
|
||||||
|
```
|
||||||
|
|
||||||
|
## Run
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo docker-compose up --build
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue