There should be no files in the /tmp directory in the container image files. Which means, files in the rootfs/tmp directory should not be added to the container image file.
Also, files in the rootfs/tmp directory should be deleted after running container exec.