Closed supereagle closed 7 years ago
ENTRYPOINT [ "echo", "$HOME" ] will not do variable substitution on $HOME.
ENTRYPOINT [ "echo", "$HOME" ]
exec form does not invoke a command shell. There are 2 solutions:
ENTRYPOINT echo $HOME
ENTRYPOINT [ "sh", "-c", "echo $HOME" ]
Problem
ENTRYPOINT [ "echo", "$HOME" ]
will not do variable substitution on $HOME.Solutions
exec form does not invoke a command shell. There are 2 solutions:
ENTRYPOINT echo $HOME
ENTRYPOINT [ "sh", "-c", "echo $HOME" ]
References