-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
BUG: Kubefile CMD can not get ENV values with ${VERSION}
format
#3853
Comments
${VERSION}
format
CMD ["echo VERSION=${VERSION}"] this type docker engine is not support. but $() is support . I think this is not bug, is docker using spec. |
not work sample dockerfile is ok
but Kubefile not work
docker inspect
sealos inspect, the env and cmd are same as docker
|
|
I have been searching for a long time, but there is no documentation indicating that I only find this ,it's for kubernetes So where exactly does this format come from ? |
/assign |
Sealos Version
v4.3.3
How to reproduce the bug?
condition1:
when i use
${VERSION}
in CMDCMD can not get ENV values
condition2:
when i use
$(VERSION)
in CMDCMD can get ENV values
What is the expected behavior?
when i use
${VERSION}
in CMD, i hope CMD can get ENV values.What do you see instead?
when i use
${VERSION}
in CMD, CMD can not get ENV values , i must use$(VERSION)
format.Operating environment
and It is work to use sealos run - e to pass variables in these two condition.
Additional information
related issue: Kubefile CMD not support Standard environment variable format
The text was updated successfully, but these errors were encountered: