Open brianthelion opened 2 years ago
When using target:
linking the allow rule for network=host is not carried over to the linking target. This means you get error error: failed to solve: failed to load LLB: network.host is not allowed
Workaround is to define network: host
also to the target that is doing the linking. https://gist.github.com/tonistiigi/b5673cf524f6d701c2fe4bf5795753e3#file-gistfile2-txt
Might be fixed by https://github.com/docker/buildx/pull/2701
The
.hcl
and.json
interpreters supportcontexts:
for resolving dependencies between builds.The
.yaml
interpreter supportsbuild: network: host
to comply with the existingdocker-compose
spec.None of the interpreters support both.