Install skypilot package by following these instructions.
Run
git clone https://github.com/skypilot-org/skypilot.git
.Steps 4-6 are based on these GCR setup instructions
First enable container registry in your project
Next follow these steps to install and authenticate Docker on your CLI
Ensure that you have Storage Admin permission in your project
Run
cd skypilot/examples/stable_diffusion
anddocker build Dockerfile
Run
docker tag stable-diffusion-webui-docker_model gcr.io/(my-project)/stable-diffusion
.Run
docker push gcr.io/(my-project)/stable-diffusion
and verify on GCR that the image is there.
Make a free DockerHub account.
In your CLI, run
docker login
and use the login credentials from your DockerHub account.Run
cd skypilot/examples/stable_diffusion
anddocker build Dockerfile
Run
docker tag stable-diffusion-webui-docker_model (my-dockerhub-username)/stable-diffusion
.Run
docker push (my-dockerhub-username)/stable-diffusion
and verify on Dockerhub that the image is there.