Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faas-cli might be incompatible for docker versions 23.0.0 and above #958

Open
NikhilSharmaWe opened this issue Apr 24, 2023 · 2 comments
Open

Comments

@NikhilSharmaWe
Copy link
Contributor

NikhilSharmaWe commented Apr 24, 2023

Expected Behaviour

faas-cli up -f pydict.yml works fine and builds an image

Current Behaviour

  • But for docker versions 23.0.0 or above the faas-cli up command shows this error:
Errors received during build:
- [pydict] received non-zero exit code from build, error: failed to fetch metadata: fork/exec /usr/local/lib/docker/cli-plugins/docker-buildx: no such file or directory

ERROR: BuildKit is enabled but the buildx component is missing or broken.
       Install the buildx component to build images with BuildKit:
       https://docs.docker.com/go/buildx/ 
  • Build works fine when docker version 20.10.24 is used.

List All Possible Solutions and Workarounds

Which Solution Do You Recommend?

Steps to Reproduce (for bugs)

Can reproduce the issue by trying to build image through openfaas with docker release version 23.0.0 or above.

Context

Your Environment

  • FaaS-CLI version ( Full output from: faas-cli version ):
    0.16.3
  • Docker version ( Full output from: docker version ):
    23.0.4 (when error occurs)
  • Are you using Docker Swarm (FaaS-swarm ) or Kubernetes (FaaS-netes)?
    Kubernetes
  • Operating System and version (e.g. Linux, Windows, MacOS):
    wsl: Ubuntu 20.04.5 LTS
  • Link to your project or a code example to reproduce issue:
@NikhilSharmaWe NikhilSharmaWe changed the title Openfaas might be incompatible for docker versions 23.0.0 and above faas-cli might be incompatible for docker versions 23.0.0 and above Apr 25, 2023
@alexellis
Copy link
Member

We'll take a look at this, thank you for sharing.

I'm not sure if you could run docker buildx uninstall?

@alexellis
Copy link
Member

Could you make a suggestion in Which Solution Do You Recommend?

Note that faas-cli publish requires DOCKER_BUILDKIT=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants