`docker cp` fails when executed within a script
I have a bash script that does a few things, one of which is to docker cp a file to the host. When I issue that command (without variable expansion) on the command line, the command works. It works with…