You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docker pass secrets don't work with docker compose build #584
Anywhere Docker accepts an environment-variable value, write se://<id|pattern> and the engine resolves it just before the container starts.
This does not appear to apply to docker compose build. Here's a minimal project demonstrating the issue:
Dockerfile:
FROM alpine:latest AS base
WORKDIR /test
RUN --mount=type=secret,id=test_auth,env=TEST_AUTH \
echo $TEST_AUTH > result.txt
CMD ["cat", "/test/result.txt"]
Activity
joe0BAB commentedon Jul 15, 2026
Thanks @jamesgecko for reporting! This is on our roadmap. For anyone else running into this please upvote, this helps us prioritize.