From f916c77cc4e23c7ed8cc59eda034b3bfea1adbd0 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Sat, 29 Oct 2022 16:15:03 +1300 Subject: [PATCH] Add install and run instructions --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f8311c4..feee9d8 100644 --- a/README.md +++ b/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 +```