How synchronize the container folder to local empty folder when container running

I would like run a container with links my container folder to my local folder. I can create a link the local folder to container folder, if the container folder isn’t empty, he’s overwritten.

But I would like a reverse link : if I run a image with docker run the folder in container writes in my local folder his data, and if I modify the files in local, the changments are writte in container.

I ask that because I download a framework online in my Dockerfile , and if I start a new project with this image, I would like the framework are directly download from container without having to download manually before.

It’s possible ?

Thanks for your responses.

Sounds like you need to use a Docker bind mount when starting the docker container.
Refer to here for details -> https://docs.docker.com/storage/bind-mounts/