Giter Club home page Giter Club logo

Comments (6)

thesattiraju avatar thesattiraju commented on September 16, 2024

What's the error you're seeing?

from docker-login.

ItalyPaleAle avatar ItalyPaleAle commented on September 16, 2024

Error was completely unrelated:
image

You can see the full pipeline and the run here: https://github.com/ItalyPaleAle/Statiko/runs/445077709?check_suite_focus=true

from docker-login.

thesattiraju avatar thesattiraju commented on September 16, 2024

Based on the documentation provided by docker here buildx is an experimental feature, in order to enable it you need to explicitly add experimental flag to the config.json file. When you use docker-login action, it ends up creating a new config.json file and overrides the DOCKER_CONFIG variable.
This explains why your action run was failing because docker cli wasn't able to recognize buildx cause experimental flag was unset in the config.

As a mitigation I suggest you use docker-login just before your push command if your build isn't trying to use the login credentials anywhere.

from docker-login.

ItalyPaleAle avatar ItalyPaleAle commented on September 16, 2024

Thanks, will try.

Is there a way maybe to add an "enableExperimental" flag to this action?

from docker-login.

thesattiraju avatar thesattiraju commented on September 16, 2024

Not right now.

from docker-login.

thesattiraju avatar thesattiraju commented on September 16, 2024

While I was digging more into this I figured a few things. These flags you set are going to be in a new file called daemon.json under the docker config's folder.

This action:

  1. Creates a new folder
  2. Adds the generated config.json file to that folder
  3. Sets/Overrides a DOCKER_CONFIG environment variable to the newly created folder.

So, you can add an additional action in your workflow explicitly to create a daemon.json file under the $DOCKER_CONFIG folder, and set all the flags you need for your workflows in that file.

Here's all the flags you can set: https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file

from docker-login.

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.