How does the docker application create storage volumes to persist configuration files?

  docker, question

I took the image of apache/zeppelin and wanted the container to use the local ApacheDS for login management.
At this time, zeppelin’s /conf/shiro.ini file needs to be configured.
I tried to enter the container to modify the configuration file, but I could not use the vi command.
Netizens said the correct way is to persist the configuration files to the storage volume. May I know how to perform this operation?

The order is as follows:

## -v Host Address: Container Address
 docker run --name my_zeppelin -it -v /yourname/conf:/conf/ apache/zeppelin

You can see the docker volume instruction specifically.