How to share a file within an existing container to other containers in the same POD? Can it be done using volume?

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: “v1.19.8”
Cloud being used: (put bare-metal if not on a public cloud) bare-metal
Installation method:
Host OS: Ubuntu 18.04
CNI and version:
CRI and version:

I understand I might be able to do it by using " Debugging with an ephemeral debug container" concept, but is it possible to use Volume concept? Then the question is, how can I declare a file system within a container as Volume and then be mounted by other container?