According to here (https://docs.docker.com/engine/reference/builder/),
The COPY instruction copies new files or directories from <src> and
adds them to the filesystem of the container at the path <dest>.
I can use COPY command to copy files/directories from the file system of the host/previous stage to the file system of the current container (copy in). But it seems there is no way to copy out (from the file system of the container to the file system of the host).
The only way is to have the built image run as a running container and do another {docker cp container:/xxx/xxx /xxx/xxx} at the host system?