openfaas / faas-cli

Official CLI for OpenFaaS
https://www.openfaas.com/
Other
798 stars 225 forks source link

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

Open NikhilSharmaWe opened 1 year ago

NikhilSharmaWe commented 1 year ago

Expected Behaviour

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

Current Behaviour

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/ 

List All Possible Solutions and Workarounds

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

alexellis commented 1 year ago

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

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

alexellis commented 1 year ago

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

Note that faas-cli publish requires DOCKER_BUILDKIT=1