Docker volumes is hung in the configuration directory, how to write the default configuration of the container to the host directory?

volumes instruction of docker-compose used

is that I want to up a container. I use volumes to mount the configuration directory of the container to a directory of the host. The corresponding directory of the host is empty. I think the files of the corresponding directory of the container will be automatically written to the directory of the host, but in fact, the host directory is the main one. After mounting, it will empty the corresponding directory in the container.

how can I fulfill this need?

Sep.09,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b02d-2b5c1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b02d-2b5c1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?