# talk to docker through unix-socket
curl --unix-socket /var/run/docker.sock 'http://localhost/images/json?all=true' | jq '.'# make sure rsync installed on container first
rsync --include='lib' --include='lib/**' --exclude='*' -e 'docker exec -i' -avz . mycontainer:/app/