Use rsync to copy files into a Docker container

Make sure your Docker container has rsync installed, and define this alias:

alias drsync="rsync -e 'docker exec -i'"

Now you can use rsync with containers as if they are remote machines:

drsync -av /source container:/destination