GCwithH2O commented on issue #7413:
URL: 
https://github.com/apache/incubator-seata/issues/7413#issuecomment-2942587909

   已解决,
   1、分析 /seata-server-entrypoint.sh得知容器通过 `cat 
/seata-server/jib-classpath-file` 动态读取 classpath 内容
   2、查看`cat /seata-server/jib-classpath-file` 
得知classpath是/seata-server/resources:/seata-server/classes:/seata-server/libs/*
   3、因此只要把mysql-connector-j-8.3.0.jar映射到/seata-server/libs 目录下就可以了(不能是子目录)
   最终命令:
   `podman run --name=seata --net=host --log-opt max-size=10m --log-opt 
max-file=3 -e TZ=Asia/Shanghai -v 
/repository/conf/seata:/seata-server/resources -v 
/repository/conf/seata/jdbc/mysql-connector-j-8.3.0.jar:/seata-server/libs/mysql-connector-j-8.3.0.jar
 -e SEATA_IP=192.168.0.8 -e TZ=Asia/Shanghai -d 
docker.io/apache/seata-server:2.4.0`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to