How do I automatically create mount volumes when docker swarm starts the service?

docker service create-- mount src=tomcatdata,dst=/usr/local/tomcat/webapps-- name myweb-- publish 80 replicas 8080-- replicas 4 tomcat

for example, if I manually created the tomcatdata volume, there would be no problem with the above command.
if I did not create a volume, the above command will prompt that the volume cannot be found. Is there a way to create it automatically?

Sorry, it could not be created automatically because of a permission problem with the docker directory. It will be all right after it has been changed.

what do I do if I want to mount two volumes at the same time?
for example, what to do if you want to mount the webapps and logs directories of tomcat to two different local volumes.

Oct.10,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-1b3c137-2ba61.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-1b3c137-2ba61.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?