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

Unsupported modifier error may not be correct #91

Closed
tymokvo opened this issue Mar 26, 2021 · 3 comments
Closed

Unsupported modifier error may not be correct #91

tymokvo opened this issue Mar 26, 2021 · 3 comments
Assignees
Labels

Comments

@tymokvo
Copy link

tymokvo commented Mar 26, 2021

Related to #38 , an error is issued for variable expansion of the form ENV FOO=${FOO:?}

failed to process "${SERVICE_NAME:?}": unsupported modifier (?) in substitution

However, this does not seem to be true as building a Dockerfile with this syntax works (as I, at least) expect. E.g. building this file:

FROM ubuntu:20.04

ARG FOO

ENV FOO=${FOO:?}

...results in:

Step 3/3 : ENV FOO=${FOO:?}
failed to process "${FOO:?}": FOO: is not allowed to be unset

unless passed --build-arg FOO=bar.

Docker version 20.10.5, build 55c4c88

Let me know if I can provide any more info!

@rcjsuen
Copy link
Owner

rcjsuen commented Mar 27, 2021

@tymokvo I have reproduced the issue. Thank you for the bug report!

@rcjsuen rcjsuen self-assigned this Mar 27, 2021
@rcjsuen rcjsuen added the bug label Mar 27, 2021
@rcjsuen
Copy link
Owner

rcjsuen commented Mar 27, 2021

@tymokvo The issue has now been fixed. Thanks again!

@tymokvo
Copy link
Author

tymokvo commented Mar 27, 2021

Wow, fast turnaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants