For copying the files from the host to the docker container :
- First, set the path in your localhost to where the file is stored.
 
- Next set the path in your docker container to where you want to store the file inside your docker container.
 
- Then copy the file which you want to store in your docker container with the help of CP command. 
 
ex: sudo docker cp /home/(name)/(folder_name)/(file_name)  (container_id):/(to_the_place_you_want_the_file_to_be)
Ready to level up your Docker skills? Enroll now in our comprehensive Docker Course!