Docker: copy file from host to container

To copy file from you host computer to a container use command docker cp

docker cp file.txt ${CONTAINER_ID}:/root/file.txt

Replace ${CONTAINER_ID} with ID of the container. You can get container name using command:

docker ps -a

Docker cp documentation.