Copy file from container:
docker cp web2:/usr/share/nginx/html/index.html .
Copy file into container:
docker cp index.html web2:/usr/share/nginx/html
Test updated file:
curl http://localhost
Copy uses tar internally:
docker cp web2:/usr/share/nginx/html - | tar -tv