how to copy file from host to docker container via inside the docker code example Example: copy file to docker container docker cp foo.txt mycontainer:/foo.txt