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

Cog Build fails with unrecognised --cache-to flag #1883

Open
8W9aG opened this issue Aug 15, 2024 · 1 comment
Open

Cog Build fails with unrecognised --cache-to flag #1883

8W9aG opened this issue Aug 15, 2024 · 1 comment

Comments

@8W9aG
Copy link
Contributor

8W9aG commented Aug 15, 2024

Running cog build with the following docker config in a Ubuntu virtual machine:

Client:
 Version:           24.0.7
 API version:       1.43
 Go version:        go1.21.1
 Git commit:        24.0.7-0ubuntu2~22.04.1
 Built:             Wed Mar 13 20:23:54 2024
 OS/Arch:           linux/amd64
 Context:           default

Server:
 Engine:
  Version:          24.0.7
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.21.1
  Git commit:       24.0.7-0ubuntu2~22.04.1
  Built:            Wed Mar 13 20:23:54 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.12
  GitCommit:        
 runc:
  Version:          1.1.12-0ubuntu2~22.04.1
  GitCommit:        
 docker-init:
  Version:          0.19.0
  GitCommit:        

Produces the following:

Building Docker image from environment in cog.yaml as cog-xxx...
⚠ Stripping patch version from Python version 3.11.9 to 3.11
⚠ Stripping patch version from Python version 3.11.9 to 3.11
unknown flag: --cache-to
See 'docker --help'.

Ideally this should be worked around to check if docker supports the --cache-to flag.

@Nehc
Copy link

Nehc commented Sep 7, 2024

same error. any recommendations?

UPD: The problem was that the docker-buildx-plugin was not installed. It is installed, for example, as described here, in the answers . After that everything works.

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

No branches or pull requests

2 participants