import{S as Ie,i as Te,s as qe,e as r,k as h,w as Se,t as c,N as He,c as a,d as t,m as p,a as s,x as $e,h as u,b as n,P as De,G as o,g as i,y as Ae,L as Ne,q as be,o as Pe,B as xe,v as Re}from"../chunks/vendor-hf-doc-builder.js";import{I as Le}from"../chunks/IconCopyLink-hf-doc-builder.js";function Ge(ce){let f,R,d,_,L,y,V,I,z,G,$,K,C,m,D,ue,Q,A,he,F,g,k,T,E,W,q,X,M,b,Z,U,w,P,ee,H,te,oe,v,re,N,ae,se,S,ne,le,Y;return y=new Le({}),E=new Le({}),{c(){f=r("meta"),R=h(),d=r("h1"),_=r("a"),L=r("span"),Se(y.$$.fragment),V=h(),I=r("span"),z=c("Run with Docker"),G=h(),$=r("p"),K=c(`You can use Docker to run most Spaces locally.
To view instructions to download and run Spaces\u2019 Docker images, click on the \u201CRun with Docker\u201D button on the top-right corner of your Space page:`),C=h(),m=r("div"),D=r("img"),Q=h(),A=r("img"),F=h(),g=r("h2"),k=r("a"),T=r("span"),Se(E.$$.fragment),W=h(),q=r("span"),X=c("Login to the Docker registry"),M=h(),b=r("p"),Z=c("Some Spaces will require you to login to Hugging Face\u2019s Docker registry. To do so, you\u2019ll need to provide:"),U=h(),w=r("ul"),P=r("li"),ee=c("Your Hugging Face username as "),H=r("code"),te=c("username"),oe=h(),v=r("li"),re=c("A User Access Token as "),N=r("code"),ae=c("password"),se=c(". Generate one "),S=r("a"),ne=c("here"),le=c("."),this.h()},l(e){const l=He('[data-svelte="svelte-1phssyn"]',document.head);f=a(l,"META",{name:!0,content:!0}),l.forEach(t),R=p(e),d=a(e,"H1",{class:!0});var O=s(d);_=a(O,"A",{id:!0,class:!0,href:!0});var pe=s(_);L=a(pe,"SPAN",{});var fe=s(L);$e(y.$$.fragment,fe),fe.forEach(t),pe.forEach(t),V=p(O),I=a(O,"SPAN",{});var de=s(I);z=u(de,"Run with Docker"),de.forEach(t),O.forEach(t),G=p(e),$=a(e,"P",{});var me=s($);K=u(me,`You can use Docker to run most Spaces locally.
To view instructions to download and run Spaces\u2019 Docker images, click on the \u201CRun with Docker\u201D button on the top-right corner of your Space page:`),me.forEach(t),C=p(e),m=a(e,"DIV",{class:!0});var j=s(m);D=a(j,"IMG",{class:!0,src:!0}),Q=p(j),A=a(j,"IMG",{class:!0,src:!0}),j.forEach(t),F=p(e),g=a(e,"H2",{class:!0});var B=s(g);k=a(B,"A",{id:!0,class:!0,href:!0});var ge=s(k);T=a(ge,"SPAN",{});var ve=s(T);$e(E.$$.fragment,ve),ve.forEach(t),ge.forEach(t),W=p(B),q=a(B,"SPAN",{});var _e=s(q);X=u(_e,"Login to the Docker registry"),_e.forEach(t),B.forEach(t),M=p(e),b=a(e,"P",{});var ke=s(b);Z=u(ke,"Some Spaces will require you to login to Hugging Face\u2019s Docker registry. To do so, you\u2019ll need to provide:"),ke.forEach(t),U=p(e),w=a(e,"UL",{});var J=s(w);P=a(J,"LI",{});var ie=s(P);ee=u(ie,"Your Hugging Face username as "),H=a(ie,"CODE",{});var we=s(H);te=u(we,"username"),we.forEach(t),ie.forEach(t),oe=p(J),v=a(J,"LI",{});var x=s(v);re=u(x,"A User Access Token as "),N=a(x,"CODE",{});var ye=s(N);ae=u(ye,"password"),ye.forEach(t),se=u(x,". Generate one "),S=a(x,"A",{href:!0,rel:!0});var Ee=s(S);ne=u(Ee,"here"),Ee.forEach(t),le=u(x,"."),x.forEach(t),J.forEach(t),this.h()},h(){n(f,"name","hf:doc:metadata"),n(f,"content",JSON.stringify(Ce)),n(_,"id","run-with-docker"),n(_,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(_,"href","#run-with-docker"),n(d,"class","relative group"),n(D,"class","block dark:hidden"),De(D.src,ue="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-run-with-docker.png")||n(D,"src",ue),n(A,"class","hidden dark:block"),De(A.src,he="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/spaces-run-with-docker-dark.png")||n(A,"src",he),n(m,"class","flex justify-center"),n(k,"id","login-to-the-docker-registry"),n(k,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),n(k,"href","#login-to-the-docker-registry"),n(g,"class","relative group"),n(S,"href","https://huggingface.co/settings/tokens"),n(S,"rel","nofollow")},m(e,l){o(document.head,f),i(e,R,l),i(e,d,l),o(d,_),o(_,L),Ae(y,L,null),o(d,V),o(d,I),o(I,z),i(e,G,l),i(e,$,l),o($,K),i(e,C,l),i(e,m,l),o(m,D),o(m,Q),o(m,A),i(e,F,l),i(e,g,l),o(g,k),o(k,T),Ae(E,T,null),o(g,W),o(g,q),o(q,X),i(e,M,l),i(e,b,l),o(b,Z),i(e,U,l),i(e,w,l),o(w,P),o(P,ee),o(P,H),o(H,te),o(w,oe),o(w,v),o(v,re),o(v,N),o(N,ae),o(v,se),o(v,S),o(S,ne),o(v,le),Y=!0},p:Ne,i(e){Y||(be(y.$$.fragment,e),be(E.$$.fragment,e),Y=!0)},o(e){Pe(y.$$.fragment,e),Pe(E.$$.fragment,e),Y=!1},d(e){t(f),e&&t(R),e&&t(d),xe(y),e&&t(G),e&&t($),e&&t(C),e&&t(m),e&&t(F),e&&t(g),xe(E),e&&t(M),e&&t(b),e&&t(U),e&&t(w)}}}const Ce={local:"run-with-docker",sections:[{local:"login-to-the-docker-registry",title:"Login to the Docker registry"}],title:"Run with Docker"};function Fe(ce){return Re(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ye extends Ie{constructor(f){super();Te(this,f,Fe,Ge,qe,{})}}export{Ye as default,Ce as metadata};
