I see two ways for you to do that. One is to get inside the container and the other one is to create a volume (and mount it), which will allow you to locally make a change and that same change will reflect in the container immediately.
This link might also help - it's about storage in Docker.
These commands do not always work exactly this way, it always depends on your containers, but here you have some examples:
- To get inside the container
docker exec -it container ID or container name
bash
You can know your container ID and container name by doing docker ps
- To create a container with a volume
docker run -d --name my_container -v /project_core_api:/core_api my_image:tag
The left side /project_core_api
is in your machine and the right side core_api
will be the folder inside the container that will reflect all your changes in /project_core_api
.