<p>If you use the flag <code>--plain-http</code>, then it works:</p>
<pre><code>❯ oras  push --plain-http  127.0.0.1:5000/foo/test:is --artifact-type application/vnd.foo content
Uploading b5bb9d8014a0 content
Uploaded  b5bb9d8014a0 content
Pushed [registry] 127.0.0.1:5000/foo/test:is
Digest: sha256:...
</code></pre>

CC BY-SA 4.0
2024-01-23T10:14:06.653Z
2024-01-23T10:14:06.653Z
guettli
<p>I use the <a href="https://oras.land/" rel="nofollow noreferrer">oras</a> cli to upload oci artifacts.</p>
<p>I get:</p>
<pre><code>❯ oras push 127.0.0.1:5000/foo/test:is --artifact-type application/vnd.foo content             
Error: Head &quot;https://127.0.0.1:5000/v2/foo/test/manifests/sha256:...&quot;: 
http: server gave HTTP response to HTTPS client
</code></pre>
<p>Roughly the same command worked fine with ghcr.io</p>
<p>What could be wrong?</p>
<p>I tried this, but now I get:</p>
<pre><code>❯ oras  push   http://127.0.0.1:5000/foo/test:is --artifact-type application/vnd.foo content
Error: invalid reference: invalid repository
</code></pre>
<p>How to upload to my local registry?</p>

<registry><oci>
oras: server gave HTTP response to HTTPS client
guettli
# oras: server gave HTTP response to HTTPS client

(Asked by: username_0 on 2024-01-23)

I use the oras cli to upload oci artifacts.
I get:
❯ oras push 127.0.0.1:5000/foo/test:is --artifact-type application/vnd.foo content             
Error: Head "https://127.0.0.1:5000/v2/foo/test/manifests/sha256:...": 
http: server gave HTTP response to HTTPS client

Roughly the same command worked fine with ghcr.io
What could be wrong?
I tried this, but now I get:
❯ oras  push   http://127.0.0.1:5000/foo/test:is --artifact-type application/vnd.foo content
Error: invalid reference: invalid repository

How to upload to my local registry?

**Tags:** registry, oci


---

## 1 answers

### Answer by username_0 on 2024-01-23. Score: 0

If you use the flag --plain-http, then it works:
❯ oras  push --plain-http  127.0.0.1:5000/foo/test:is --artifact-type application/vnd.foo content
Uploading b5bb9d8014a0 content
Uploaded  b5bb9d8014a0 content
Pushed [registry] 127.0.0.1:5000/foo/test:is
Digest: sha256:...


---

