PageSourceSearch

https://oras.land/assets/js/f440bec8.6efc51c1.js

js oras.land collected 2026-10-01 10:27:56 UTC 4,700 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkoras_www||=[]).push([[1547],{1905(e,n,s){s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>t,metadata:()=>o,toc:()=>l});const o=JSON.parse('{"id":"commands/oras_login","title":"oras login","description":"Log in to a remote registry","source":"@site/versioned_docs/version-1.1/commands/oras_login.mdx","sourceDirName":"commands","slug":"/commands/oras_login","permalink":"/docs/1.1/commands/oras_login","draft":false,"unlisted":false,"editUrl":"https://github.com/oras-project/oras-www/edit/main/versioned_docs/version-1.1/commands/oras_login.mdx","tags":[],"version":"1.1","sidebarPosition":80,"frontMatter":{"title":"oras login","sidebar_position":80,"warning":"Do NOT modify this generated file"},"sidebar":"tutorialSidebar","previous":{"title":"oras help","permalink":"/docs/1.1/commands/oras_help"},"next":{"title":"oras logout","permalink":"/docs/1.1/commands/oras_logout"}}');var r=s(74848),i=s(28453);const t={title:"oras login",sidebar_position:80,warning:"Do NOT modify this generated file"},a="oras login",d={},l=[{value:"Examples",id:"examples",level:2},{value:"Options",id:"options",level:2}];function c(e){const n={code:"code",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"oras-login",children:"oras login"})}),"\n",(0,r.jsx)(n.p,{children:"Log in to a remote registry"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"oras login [flags] <registry>\n"})}),"\n",(0,r.jsx)(n.h2,{id:"examples",children:"Examples"}),"\n",(0,r.jsx)(n.p,{children:"Log in with username and password from command line flags:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"oras login -u username -p password localhost:5000\n"})}),"\n",(0,r.jsx)(n.p,{children:"Log in with username and password from stdin:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"oras login -u username --password-stdin localhost:5000\n"})}),"\n",(0,r.jsx)(n.p,{children:"Log in with identity token from command line flags:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"oras login -p token localhost:5000\n"})}),"\n",(0,r.jsx)(n.p,{children:"Log in with identity token from stdin:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"oras login --password-stdin localhost:5000\n"})}),"\n",(0,r.jsx)(n.p,{children:"Log in with username and password in an interactive terminal:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"oras login localhost:5000\n"})}),"\n",(0,r.jsx)(n.p,{children:"Log in with username and password in an interactive terminal and no TLS check:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"oras login --insecure localhost:5000\n"})}),"\n",(0,r.jsx)(n.h2,{id:"options",children:"Options"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{children:"      --ca-file string                             server certificate authority file for the remote registry\n  -d, --debug                                      debug mode\n  -H, --header stringArray                         add custom headers to requests\n  -h, --help                                       help for login\n      --insecure                                   allow connections to SSL registry without certs\n  -p, --password string                            registry password or identity token\n      --password-stdin                             read password or identity token from stdin\n      --plain-http                                 allow insecure connections to registry without SSL check\n      --registry-config path                       path of the authentication file for registry\n      --resolve host:port:address[:address_port]   customized DNS for registry, formatted in host:port:address[:address_port]\n  -u, --username string                            registry username\n  -v, --verbose                                    verbose output\n"})})]})}function h(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},28453(e,n,s){s.d(n,{R:()=>t,x:()=>a});var o=s(96540);const r={},i=o.createContext(r);function t(e){const n=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:t(e.components),o.createElement(i.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.