Coder Social home page Coder Social logo

Comments (4)

simonwo avatar simonwo commented on May 27, 2024

But, why is it Bacalhau cannot resolve this but Docker can?

It's something to do with docker context:

% docker context list
NAME                TYPE                DESCRIPTION                               DOCKER ENDPOINT                               KUBERNETES ENDPOINT   ORCHESTRATOR
default             moby                Current DOCKER_HOST based configuration   unix:///var/run/docker.sock                                         
desktop-linux *     moby                Docker Desktop                            unix:///Users/simon/.docker/run/docker.sock                         

Docker internally seems to be storing contextual informaiton in ~/.docker/config.json and ~/.docker/contexts on at least systems with Docker Desktop (Macs and probably Windows). This looks like a closed-source proprietary addition to Docker and not part of the open-source version Moby.

To fix this issue, we could:

  • double-check that there is nowhere open-source that Docker are making available this contexts feature
  • if not, write our own parser for the contexts structure into our Docker client (it's not complicated)
% cat config.json
{
	"auths": {
		"ghcr.io": {}
	},
	"credsStore": "desktop",
	"currentContext": "desktop-linux"
}
% cat contexts/meta/fe9c6bd7a66301f49ca9b6a70b217107cd1284598bfc254700c989b916da791e/meta.json 
{"Name":"desktop-linux","Metadata":{"Description":"Docker Desktop"},"Endpoints":{"docker":{"Host":"unix:///Users/simon/.docker/run/docker.sock","SkipTLSVerify":false}}}%

from bacalhau.

aronchick avatar aronchick commented on May 27, 2024

Taking on more visible errors is super important - we just keep running into this.

I don't want to turn this bug into the feature - created a new one - #3059

from bacalhau.

simonwo avatar simonwo commented on May 27, 2024

This is still a bug, separate from the error message given.

from bacalhau.

wdbaruni avatar wdbaruni commented on May 27, 2024

This is still an issue that I just faced after updating my docker desktop

from bacalhau.

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.