I have a Docker file with the following line:
COPY *.zip ~user1
The user user1already exists and has a home directory (i.e. /home/user1). The goal, of course, is to copy the zip file to this user's home directory, however the result of this is that the zip file is copied to the file from literally /~user1on the image.
The following works as expected:
COPY *.zip /home/user1
Is this a bug in Docker, or is there a restriction related to the tilde extension that I don't know about?
Using Docker 1.13.0 on Mac.
david source
share