How does docker share the files in the container to the host computer

  docker, question

-v is to mount the host file into the container. But I want the files in the container to be put on the host computer.

docker cp <containerId>:/file/path/within/container /host/path/target