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

bake: network host permission not allowed when linking targets #1138

Open
brianthelion opened this issue May 19, 2022 · 3 comments
Open

bake: network host permission not allowed when linking targets #1138

brianthelion opened this issue May 19, 2022 · 3 comments
Assignees
Labels
area/bake help wanted Extra attention is needed kind/bug Something isn't working
Milestone

Comments

@brianthelion
Copy link

The .hcl and .json interpreters support contexts: for resolving dependencies between builds.

The .yaml interpreter supports build: network: host to comply with the existing docker-compose spec.

None of the interpreters support both.

@tonistiigi tonistiigi changed the title No way to combine contexts: and network: host bake: network host permission not allowed when linking targets May 19, 2022
@tonistiigi
Copy link
Member

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

@tonistiigi
Copy link
Member

Workaround is to define network: host also to the target that is doing the linking. https://gist.github.com/tonistiigi/b5673cf524f6d701c2fe4bf5795753e3#file-gistfile2-txt

@tonistiigi tonistiigi added the kind/bug Something isn't working label May 20, 2022
@thompson-shaun thompson-shaun added this to the bake-ga milestone Jun 20, 2024
@thompson-shaun thompson-shaun modified the milestones: bake-ga, v0.future Jul 11, 2024
@thompson-shaun thompson-shaun added the help wanted Extra attention is needed label Jul 11, 2024
@thompson-shaun
Copy link
Collaborator

Might be fixed by #2701

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bake help wanted Extra attention is needed kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants