Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/hub/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@
title: Langfuse on Spaces
- local: spaces-embed
title: Embed your Space
- local: spaces-run-with-docker
title: Run Spaces with Docker
- local: spaces-run-locally
title: Run locally
- local: spaces-config-reference
title: Spaces Configuration Reference
- local: spaces-oauth
Expand Down
2 changes: 1 addition & 1 deletion docs/hub/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The Hugging Face Hub is a platform with over 900k models, 200k datasets, and 300
<a class="!no-underline hover:opacity-60 transform transition-colors hover:translate-x-px" href="./spaces-sdks-static">Static HTML Spaces</a>
<a class="!no-underline hover:opacity-60 transform transition-colors hover:translate-x-px" href="./spaces-sdks-docker">Docker Spaces</a>
<a class="!no-underline hover:opacity-60 transform transition-colors hover:translate-x-px" href="./spaces-embed">Embed your Space</a>
<a class="!no-underline hover:opacity-60 transform transition-colors hover:translate-x-px" href="./spaces-run-with-docker">Run with Docker</a>
<a class="!no-underline hover:opacity-60 transform transition-colors hover:translate-x-px" href="./spaces-run-locally">Run locally</a>
<a class="!no-underline hover:opacity-60 transform transition-colors hover:translate-x-px" href="./spaces-config-reference">Reference</a>
<a class="!no-underline hover:opacity-60 transform transition-colors hover:translate-x-px" href="./spaces-changelog">Changelog</a>
<a class="!no-underline hover:opacity-60 transform transition-colors hover:translate-x-px" href="./spaces-advanced">Advanced Topics</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# Run with Docker
# Run Locally

You can use Docker to run most Spaces locally.
To view instructions to download and run Spaces' Docker images, click on the "Run with Docker" button on the top-right corner of your Space page:
You can run most Spaces locally.
To view instructions to download and run Spaces locally, click on the "Run locally" button on the top-right corner of your Space page:

<div class="flex justify-center">
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-run-with-docker.png"/>
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-run-with-docker-dark.png"/>
<img class="block dark:hidden" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-run-locally.png"/>
<img class="hidden dark:block" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-run-locally-dark.png"/>
</div>

## Login to the Docker registry
You can choose to run the Space using Docker or by cloning the repository with Git, and then follow the provided instructions.

## Run locally via Docker

Some Spaces will require you to login to Hugging Face's Docker registry. To do so, you'll need to provide:
- Your Hugging Face username as `username`
Expand Down
2 changes: 1 addition & 1 deletion docs/hub/spaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ You'll also be able to upgrade your Space to run [on a GPU or other accelerated
- [Static HTML Spaces](./spaces-sdks-static)
- [Custom Python Spaces](./spaces-sdks-python)
- [Embed your Space](./spaces-embed)
- [Run your Space with Docker](./spaces-run-with-docker)
- [Run your Space locally](./spaces-run-locally)
- [Reference](./spaces-config-reference)
- [Changelog](./spaces-changelog)

Expand Down