Docker容器运行jar包,显示错误:Failed to start thread "GC Thread#0" - pthread_create failed(EPERM) for attributes :stacksize:1024k,guardsize:4k,detached

发布时间 2023-05-08 16:16:13作者: 独孤明人

问题:

Docker容器运行jar包,显示错误:Failed to start thread "GC Thread#0" - pthread_create failed(EPERM) for attributes :stacksize:1024k,guardsize:4k,detached

 问题解决:

--security-opt seccomp=unconfined参数添加到docker run命令修复了我的问题。具体参考自:https://www.saoniuhuo.com/question/detail-2240356.html

 

相关问题解决:通过升级docker版本进行解决,但并未亲自尝试。https://github.com/GoogleCloudPlatform/pgadapter/issues/405