I have two docker images. One of the docker image (from first container), when ran, generates some files, which needs to be consumed by the another container.
Can I
Rene's answer works, but you could share data without using the host's directory (container1 ==> container2):
docker run -v /data/myfolder --name container1 image-name-1 docker run --volumes-from container1 image-name-2