docker / buildx

Docker CLI plugin for extended build capabilities with BuildKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cgroup property is not allowed when using bake command with docker compose as input

noorul opened this issue · comments

Description

I am using cgroup: private property in docker-compose. This support was added in the spec via compose-spec/compose-spec#292. But bake command fails to parse it. I get the following error

Additional property cgroup is not allowed

Versions:

Host OS: Ubuntu 22.04
Docker CE: 26.1.4-1ubuntu.22.04jammy
Docker Compose Plugin: 2.27.1-1ubuntu.22.04jammy
Docker Buildx Plugin: 0.14.1-1ubuntu.22.04jammy

@crazy-max @ndeloof How is this possible? Looks like a relatively old PR and we are using compose v2.1.2

Seems to work fine with this new test: #2555

@noorul Can you share your compose file and also the output of docker buildx version please?

My bad! Even though I was installing the latest from the docker apt repo, I had old installation instructions in the Dockerfile. Sorry for the noise. I appreciate the help!