copy file from local machine to docker code example Example: copy file from host to docker container Click to copydocker cp foo.txt mycontainer:/foo.txt