Can't use docker cp to copy file from /tmp
I figured out the solution.
I had install docker
as a snap. I uninstalled it (sudo snap remove docker
) and installed it using the official Docker guidelines for installing on Debian.
After this, it worked just fine.
I think it might've been due to snap packages having limited access to system resources - but I don't know for sure.