Giter VIP home page Giter VIP logo

Comments (10)

estesp avatar estesp commented on May 22, 2024 1

Some help on using the Go API to support authenticated registry interactions:

When used as a CRI provider, the CRI plugin has its own configuration for registry auth: https://github.com/containerd/cri/blob/master/docs/registry.md

When using the Go client API for containerd, you can see from the ctr images pull implementation (as one example) how it sets up the NewDockerAuthorizer using these helper functions: https://github.com/containerd/containerd/blob/master/cmd/ctr/commands/resolver.go

from faasd.

KaiWedekind avatar KaiWedekind commented on May 22, 2024

Thank you Alex!

from faasd.

alexellis avatar alexellis commented on May 22, 2024

@KaiWedekind are your repos public and without auth, just not on docker.io, or are they also private? We have two use-cases and Iā€™d like to support it in two steps.

from faasd.

KaiWedekind avatar KaiWedekind commented on May 22, 2024

@alexellis I'm am using a self hosted GitLab and their container registry. My repos there are private.

I was using this line in my .gitlab-ci.yaml to login. Ref

- echo -n "$CI_DOCKER_LOGIN" | docker login --username admin --password-stdin registry.<HOST>.io

Build and push to the container registry works, it is just the deployment.
Thank you, Alex.

from faasd.

alexellis avatar alexellis commented on May 22, 2024

I suspect that a nice experience might be to have users copy their .docker/config.json file to a known location, and for the faasd daemon to always use that to resolve images. A good location may be: /var/lib/faasd/.docker/config.json

The Docker config JSON file is also used in Kubernetes and can support multiple remotes.

from faasd.

alexellis avatar alexellis commented on May 22, 2024

Thank you @estesp

from faasd.

alexellis avatar alexellis commented on May 22, 2024

Added to Trello roadmap for 2020.

from faasd.

AkihiroSuda avatar AkihiroSuda commented on May 22, 2024

PR #41

from faasd.

alexellis avatar alexellis commented on May 22, 2024

Many thanks @AkihiroSuda

from faasd.

alexellis avatar alexellis commented on May 22, 2024

@KaiWedekind PTAL :)

from faasd.

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.