Skip to content
New issue

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

oras tries to use http instead of https #1106

Closed
1 task
erikschul opened this issue Sep 6, 2023 · 2 comments · Fixed by #1107, #1266 or armbian/build#6964 · May be fixed by jnnycn007/Armbian-build#20
Closed
1 task

oras tries to use http instead of https #1106

erikschul opened this issue Sep 6, 2023 · 2 comments · Fixed by #1107, #1266 or armbian/build#6964 · May be fixed by jnnycn007/Armbian-build#20
Labels
bug Something isn't working
Milestone

Comments

@erikschul
Copy link

What happened in your environment?

When executing command oras repo ls localhost
I get this error:

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?

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?

  • Yes, I am willing to fix it.
@erikschul erikschul added the bug Something isn't working label Sep 6, 2023
@qweeah
Copy link
Contributor

qweeah commented Sep 7, 2023

@erikschul Thanks for reporting this bug. Confirmed that --plain-http=false doesn't work for localhost

@qweeah qweeah added this to the v1.2.0 milestone Sep 7, 2023
@qweeah
Copy link
Contributor

qweeah commented Sep 7, 2023

@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:

oras repo ls my.registry --resolve my.registry:443:0.0.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment