Skip to content

Latest commit

 

History

History
36 lines (17 loc) · 1.46 KB

pushing_docker_image.md

File metadata and controls

36 lines (17 loc) · 1.46 KB

Pushing Docker Image

GCR

  1. Install skypilot package by following these instructions.

  2. Run git clone https://github.com/skypilot-org/skypilot.git .

  3. Steps 4-6 are based on these GCR setup instructions

  4. First enable container registry in your project

  5. Next follow these steps to install and authenticate Docker on your CLI

  6. Ensure that you have Storage Admin permission in your project

  7. Run cd skypilot/examples/stable_diffusion and docker build Dockerfile

  8. Run docker tag stable-diffusion-webui-docker_model gcr.io/(my-project)/stable-diffusion.

  9. Run docker push gcr.io/(my-project)/stable-diffusion and verify on GCR that the image is there.

DockerHub

  1. Make a free DockerHub account.

  2. In your CLI, run docker login and use the login credentials from your DockerHub account.

  3. Run cd skypilot/examples/stable_diffusion and docker build Dockerfile

  4. Run docker tag stable-diffusion-webui-docker_model (my-dockerhub-username)/stable-diffusion.

  5. Run docker push (my-dockerhub-username)/stable-diffusion and verify on Dockerhub that the image is there.

close