With cat
I can read from a file to stdout. This way I can for example pipe a file out of a docker container:
docker exec my_container cat file > file_on_host
When I want to do the opposite, I would need a command that reads from stdin and saves to a file. Is there such a command?
docker exec my_container ??? file < file_on_host