In order to copy a file from a container to the host, you can use the command:
docker cp <containerId>:/file/path/within/container /host/path/target
In order to copy a file from a container to the host, you can use the command:
docker cp <containerId>:/file/path/within/container /host/path/target