I have a Dockerfile with the following line:
USER lodgepole
CMD ["tail", "-f", "~/block.txt"]
But container exits with error that the file ~/block.txt
is not found
The following does work as expected:
CMD ["tail", "-f", "/home/lodgepole/block.txt"]
Is this a bug in Docker or is there a limitation related to tilde expansion that I'm not aware of?
Using Docker 20.10.9 on Linux.