Skip to content

Grant bake read access to the repository root in docker:push - #441

Merged
lyrixx merged 1 commit into
mainfrom
fix-bake-fs-entitlement
Sep 25, 2026
Merged

lyrixx merged 1 commit into
mainfrom
fix-bake-fs-entitlement

Conversation

@lyrixx

@lyrixx lyrixx commented Sep 25, 2026

Copy link
Copy Markdown
Member

docker buildx bake asks for an interactive confirmation when a build context lives outside of the directory of the bake (compose) files, for instance an additional app context pointing to the repository root:

Your build is requesting privileges for following possibly insecure capabilities:
 - Read access to path /…/repository
Do you want to grant requested privileges and continue? [y/N]

As castor runs the command with a pty, the "Build and push production images" job then waits forever for an answer (it hung for more than an hour). This passes --allow=fs.read=<root_dir> explicitly.

docker buildx bake asks for an interactive confirmation when a build
context lives outside of the directory of the bake (compose) files,
like an additional "app" context pointing to the repository root. As
castor runs the command with a pty, the CI job then waits forever for
an answer. Pass --allow=fs.read=<root_dir> explicitly.
@lyrixx
lyrixx merged commit ddec230 into main Sep 25, 2026
4 checks passed
@lyrixx
lyrixx deleted the fix-bake-fs-entitlement branch September 25, 2026 12:00
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

Successfully merging this pull request may close these issues.

1 participant