How does a docker application create storage volumes to make configuration files persistent?

pulled the image of apache/zeppelin and wanted the container to use the local ApacheDS for login management.
the / conf/shiro.ini file of zeppelin needs to be configured at this time.
I tried to enter the container to modify the configuration file, but I couldn"t use the vi command.
netizens said that the correct way is to persist the configuration file to the storage volume. Could you tell me how to perform this operation?

Feb.26,2021

The

command is as follows:

-sharp-sharp -v  :  
docker run --name my_zeppelin -it -v /yourname/conf:/conf/ apache/zeppelin

for more information, please see docker volume instruction

Menu