Giter Club home page Giter Club logo

Comments (8)

kemingy avatar kemingy commented on July 17, 2024

Can you access this private registry locally? This requires your auth file in $HOME/.docker/config.json.

from envd.

mucahitkantepe avatar mucahitkantepe commented on July 17, 2024

Yes, I can. This works when the base image is public but the push address is a private registry.

from envd.

mucahitkantepe avatar mucahitkantepe commented on July 17, 2024

I am not sure if it's related but only thing I can see is that buildkit v0.11.6 has a fix for some 401 Unauthorized issues. https://github.com/moby/buildkit/releases/tag/v0.11.6
moby/buildkit#3779 could we bump up the buildkit version?

from envd.

jboutwell-rva avatar jboutwell-rva commented on July 17, 2024

@mucahitkantepe did you ever verify if this resolved your issue?

I am using the latest (0.3.40) and I get the exact same behavior (it can publish to the private registry, but not use a private base image).

from envd.

mucahitkantepe avatar mucahitkantepe commented on July 17, 2024

@mucahitkantepe did you ever verify if this resolved your issue?

I am using the latest (0.3.40) and I get the exact same behavior (it can publish to the private registry, but not use a private base image).

Yes, it worked for me after the fix

from envd.

pryce-turner avatar pryce-turner commented on July 17, 2024

Hey @jboutwell-rva were you ever able to get it working? 0.3.45 and I'm still getting this error.. tried dockerhub, ghcr, and ecr. Pushing to a private repo works fine, it's just pulling. I appreciate any help!

from envd.

jboutwell-rva avatar jboutwell-rva commented on July 17, 2024

Hey @jboutwell-rva were you ever able to get it working? 0.3.45 and I'm still getting this error.. tried dockerhub, ghcr, and ecr. Pushing to a private repo works fine, it's just pulling. I appreciate any help!

I ended up working around the issue by using ECR login helper. The trick was the docker config (~/.docker/config.json) was very sensitive to the configuration envd would accept (why envd broke with other valid docker config, I don't know). Here is the exact config I use:

{
	"credsStore": "ecr-login",
	"currentContext": "desktop-linux",
	"credHelpers": {
		"public.ecr.aws": "ecr-login",
		"<account number>.dkr.ecr.us-east-1.amazonaws.com": "ecr-login"
	}
}

from envd.

pryce-turner avatar pryce-turner commented on July 17, 2024

Awesome, thank you for sharing!

from envd.

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.