Skip to content

Why does one LABEL evaluate an expression in my Dockerfile and another does not? #2881

Closed Answered by hughbris
hughbris asked this question in Q&A
Discussion options

You must be logged in to vote

Quite embarrassed now, realising 0.2.6 was in fact hardcoded as the default in my build shell script: VER=${3:-0.2.6}--label org.opencontainers.image.version=$VER before I decided to work on making this dynamic.

I guess shell expression expansion is not supported at all in Dockerfile LABEL :/

Sorry if I wasted anyone's time trying to reproduce.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hughbris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant