Coder Social home page Coder Social logo

Comments (5)

xiaocode avatar xiaocode commented on August 21, 2024 2

@rajatjindal @vdice Thanks to both of you.It works now!

from spin.

rajatjindal avatar rajatjindal commented on August 21, 2024 1

the same flag --insecure works with spin up as well. (i just verified it)

spin up -f localhost:5000/myapp:latest --insecure

Serving http://127.0.0.1:3000
Available Routes:
  http-ex: http://127.0.0.1:3000 (wildcard)
Handling request to Some(HeaderValue { inner: String("http://127.0.0.1:3000/") })

from spin.

xiaocode avatar xiaocode commented on August 21, 2024

After I clone the latest spin repo and build, I got different response:

Error: cannot log in to the registry

Caused by:
      cannot authenticate as admin to registry docker.registry.local:5000: http transport error: error sending request for url (https://docker.registry.local:5000/v2/): error trying to connect: error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:354:

Spin version:
spin 2.7.0-pre0 (7833e71 2024-06-28)

from spin.

vdice avatar vdice commented on August 21, 2024

Hello @xiaocode,

The failures you are seeing are due to Spin's login client attempting to ensure a secure https connection with the local private registries which I assume are running unsecured (eg via http). The spin registry login command doesn't yet support insecure/http registries (see #1211).

However, for any local registry running via http, you can proceed in using the other spin registry push/pull commands without needing to authenticate. You just need to also supply the --insecure/-k flag. For example: spin registry push docker.registry.local:5000/myapp:latest --insecure. Can you give that a try and let us know if you are still experiencing issues?

from spin.

xiaocode avatar xiaocode commented on August 21, 2024

@vdice Thank you for your anwser.
I have tried to use spin registry push docker.registry.local:5000/myapp:latest --insecure and success, but I when I try to use spin up -f with and pass the registry reference, It shows that need the docker registry must use https to retrieve images.
I just want to use spin with local docker registry so that I can run this totally without Internet.

from spin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.