docker compose config will normalise a port mapping like:
to this:
ports:
- mode: ingress
target: 3306
published: "3306"
protocol: tcp
Trying to pipe this into buildx bake 0.8.0 hits an error:
error: failed to parse -: parsing yaml: services.mysql.ports.0.published must be a integer, parsing hcl: -.hcl:17,11-12: Invalid character; Single quotes are not valid. Use double quotes (") to enclose strings., and 13 other diagnostic(s)
The compose-spec allows either int or string here, because it's supposed to be able to support a range like "3306-3310" - I guess compose is choosing to always output string
docker compose configwill normalise a port mapping like:to this:
Trying to pipe this into
buildx bake0.8.0 hits an error:The compose-spec allows either int or string here, because it's supposed to be able to support a range like
"3306-3310"- I guesscomposeis choosing to always output string