supereagle / experiences

Summary of practical experience in work.
2 stars 0 forks source link

Exec form of ENTRYPOINT in Dockerfile does not support environment variables #43

Closed supereagle closed 7 years ago

supereagle commented 7 years ago

Problem

ENTRYPOINT [ "echo", "$HOME" ] will not do variable substitution on $HOME.

Solutions

exec form does not invoke a command shell. There are 2 solutions:

References