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
It's very simple. You have to share one directory to two different containers, then have both access to the same data in that directory.
docker run -v myfolder:/data/myfolder image-name-1 docker run -v myfolder:/data/myfolder image-name-2