We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When executing command oras repo ls localhost I get this error:
oras repo ls localhost
Error: Get "http://localhost/v2/_catalog": dial tcp [::1]:80: connect: connection refused
There is no argument for using https, only for using http (--plain-http), so what's going wrong?
--plain-http
No response
.
Version: 1.1.0+Homebrew Go version: go1.21.0
MacOS
The text was updated successfully, but these errors were encountered:
@erikschul Thanks for reporting this bug. Confirmed that --plain-http=false doesn't work for localhost
--plain-http=false
localhost
Sorry, something went wrong.
@erikschul There is a workaround, you may force the hostname to be not localhost like using --resolve <mock-host>:443:0.0.0.0 as below:
--resolve <mock-host>:443:0.0.0.0
oras repo ls my.registry --resolve my.registry:443:0.0.0.0
ORAS_VERSION
lib/functions/general/oci-oras.sh
Successfully merging a pull request may close this issue.
What happened in your environment?
When executing command
oras repo ls localhost
I get this error:
There is no argument for using https, only for using http (
--plain-http
), so what's going wrong?What did you expect to happen?
No response
How can we reproduce it?
.
What is the version of your ORAS CLI?
Version: 1.1.0+Homebrew
Go version: go1.21.0
What is your OS environment?
MacOS
Are you willing to submit PRs to fix it?
The text was updated successfully, but these errors were encountered: